pip3 로 pymysql 깔고 스크립트 실행했는데도 다음과 같은 에러가 날경우 ModuleNotFoundError: No module named 'pymysql'
$ pip3 install pymysql
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: PyMySQL in /Library/Python/3.8/site-packages (1.0.2)
내용보면 '-m pip'와 함께 실행해줄 것을 권고하고 있다.
> sudo python3 -m pip install pymysql
https://stackoverflow.com/questions/62968439/modulenotfounderror-no-module-named-pymysql-in-jupyter
로 다시 설치해주도록 하자~
'Programming > Python' 카테고리의 다른 글
ModuleNotFoundError: No module named 'pip._vendor.packaging' (0) | 2022.01.12 |
---|---|
ImportError: No module named requests 에러처리 (0) | 2017.11.15 |