임 을 에 설치하고 Windows x64에 설치하십시오. Python : Windows 7 x64에 mysqldb를 설치하는 방법은 무엇입니까?
나는 (성공적으로 설치 잎 lib 디렉토리에 체크) 파이썬 64, setuptools에를 설치하지만 난 mysqldb를 설치할 수 없습니다. 나는C를 실행하려고 : 사용자 \ Fedcomp \ 바탕 화면 \ 잎 - 0.4 MySQL을 - 파이썬-1.2.3 \> 파이썬 이
를 설치하지만,이
를 잡을 수있는 setup.py \In file included from _mysql.c:34:
D:\servers\xampp_server\xampp\mysql\include/config-win.h:211:1: warning: "finite
" redefined
D:\servers\xampp_server\xampp\mysql\include/config-win.h:164:1: warning: this is
the location of the previous definition
D:\servers\xampp_server\xampp\mysql\include/config-win.h:277:1: warning: "HAVE_S
TDDEF_H" redefined
In file included from D:\Python27\include/Python.h:8,
from pymemcompat.h:10,
from _mysql.c:29:
D:\Python27\include/pyconfig.h:673:1: warning: this is the location of the previ
ous definition
error: command 'gcc' failed with exit status 1
또한이 (설치 MS 비주얼 표현)
C:\Users\Fedcomp\Desktop\leaf-0.4\MySQL-python-1.2.3>python setup.py install bui
ld --compiler=msvc
running install
running bdist_egg
running egg_info
writing MySQL_python.egg-info\PKG-INFO
writing top-level names to MySQL_python.egg-info\top_level.txt
writing dependency_links to MySQL_python.egg-info\dependency_links.txt
reading manifest file 'MySQL_python.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'MANIFEST'
warning: no files found matching 'ChangeLog'
warning: no files found matching 'GPL'
writing manifest file 'MySQL_python.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
copying MySQLdb\release.py -> build\lib.win-amd64-2.7\MySQLdb
running build_ext
building '_mysql' extension
error: Unable to find vcvarsall.bat
,536,913를 MSVC와 노력하지만 잡기
windows x64에서 mysqldb를 올바르게 설치하는 방법은 무엇입니까? (원본 MySQL 설치에서 헤더 XAMPP 서버에 그들이 존재하지 않는 때문에)
또는 누군가가 창문 파이썬 64 또는 파이썬 86에 대한 mysqldb를 컴파일 할 수있다?
+1 발견. 나는 32 비트를 사용하라는 제안을지지 할 것이다. 삶이 편해진다. –
다른 버전을 이미 설치 한 경우 먼저 제거하고 올바른 버전을 설치하도록 제안합니다. –
그냥 작은 코멘트 : 첫 번째 링크를 시도하고 내 DB (파이썬 2.7 버전)에 연결하는 데 실패합니다. 그러나 두 번째 링크에서 드라이버가 잘 작동합니다. – dbf