반응형
pip install mysql-python connector
를 실행하려고하는데 " Cannot open include file : 'config-win.h'"오류가 계속 표시됩니다.
내 Mac과 다른 Windows 컴퓨터에서는 설치가 잘 작동하지만이 컴퓨터에서는 작동하지 않습니다. Visual Studio C ++를 다운로드하고 32 비트와 64로 설치를 시도했습니다.
_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No s
uch file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\BIN\\c
l.exe' failed with exit status 2
----------------------------------------
Cleaning up...
Command C:\Users\Admin1\Desktop\python\virtual\Scripts\python.exe -c "import set
uptools, tokenize;__file__='C:\\Users\\Admin1\\Desktop\\python\\virtual\\build\MySQL-python\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).r
ead().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\admin
1\appdata\local\temp\1\pip-6pmwrd-record\install-record.txt --single-version-ext
ernally-managed --compile --install-headers C:\Users\Admin1\Desktop\python\virtu
al\include\site\python2.7 failed with error code 1 in C:\Users\Admin1\Desktop\py
thon\virtual\build\MySQL-python
Storing debug log for failure in C:\Users\Admin1\pip\pip.log
해결 방법
64 비트 Windows 용
휠을 사용하여 설치
pip install wheel
Python 3.x의 경우 :
pip install mysqlclient-1.3.8-cp36-cp36m-win_amd64.whl
Python 2.7의 경우 :
pip install mysqlclient-1.3.8-cp27-cp27m-win_amd64.whl
참조 페이지 https://stackoverflow.com/questions/26866147
반응형
'MySql' 카테고리의 다른 글
MySQL 저장 프로 시저, 함수 및 루틴의 차이점은 무엇입니까? (0) | 2020.11.28 |
---|---|
MySQL View all foreign key constraints for entire MySQL database (0) | 2020.11.28 |
MySQL SQL에서 여러 열로 두 테이블을 조인하는 방법은 무엇입니까? (0) | 2020.11.28 |
MySQL While 루프를 사용한 MySQL 삽입 (0) | 2020.11.28 |
MySQL MySQl 오류 # 1064 (0) | 2020.11.28 |
댓글