ModuleNotFoundError: No module named 'pymysql'

 주식정보를 증권사로 부터 받아오는 프로그램을 파이썬을 이용하여 만들었는데 포멧을 하고 소스를 실행 하려는데 에러가 발생하였다. 내용은 "ModuleNotFoundError: No module named 'pymysql'" pymysql 을 임포트 하려는데 모듈이 없다는 뜻이다. 찾아 준다.

I had made a program to collect stock information using Python, A few days ago , I did Windows format and got a 'pymyql' error when run the program. The Error mean no module for mysql. Find the module


혹시나 파이썬 설치시 자동으로 되는건지 의심하여 입력해 본 명령어 pip와 pip3 명령어가 될 턱이 있나 PATH 도 안잡혀 있고 하여 pip 와 pip3 가 있는 경로로 이동하여 모듈을 받았다. pip3.6.exe 가 있길래 이걸로 모듈 인스톨을 해봤다. 잘된다. 그런데 win32com 모듈도 없다고 떠서 한번 더 했다. 만약 win32 모듈 설치 이후 win32api 에서 또 문제가 발생하거나 모듈을 설치 했음에도 불구 하고 문제 재 발생시 언인스톨로 지우고서 다시 인스톨 하기 바란다.

 >pip.exe install pymyql
 >pip.exe install pypiwin32

I couldn't use pip and pip3 because no path to run pip, So i changed directory where pip.exe is, And i ran a command that is 'pip3.6.exe install pymysql'. I got same situation from 'import win32com' code, So i changed module name and ran it again 'pip3.6.exe install pypiwin32'

I am using Python 3.6 version

If you got same error what error mean no module, although you ran the command, you should run uninstall and run install that is re-installation. I did


 >pip.exe uninstall pypiwin32
 >pip.exe install pypiwin32




댓글

가장 많이 본 글