Program Tip

easy_install이 MySQLdb를 찾을 수없는 이유는 무엇입니까?

programtip 2020. 11. 13. 23:55
반응형

easy_install이 MySQLdb를 찾을 수없는 이유는 무엇입니까?


이것이 내가 시도한 것입니다.

$ easy_install-2.6 -d /home/user/lib/python2.6 MySQLdb  
Searching for MySQLdb  
Reading http://pypi.python.org/simple/MySQLdb/  
Couldn't find index page for 'MySQLdb' (maybe misspelled?)  
Scanning index of all packages (this may take a while)  
Reading http://pypi.python.org/simple/  
No local packages or download links found for MySQLdb  
error: Could not find suitable distribution for Requirement.parse('MySQLdb')  

패키지 이름이 잘못되었습니다.

MySQL-python 이 맞습니다.

easy_install MySQL-python

또는

pip 설치 MySQL-python

Adam이 맞지만 실행하기 전에 기본적으로 설치되어 있지 않으므로 설치되어 easy_install MySQL-python있는지 확인해야합니다 python-dev.

설치는 apt-get install python-dev.


"yum"을 사용하는 경우 명령은 다음과 같습니다. sudo yum install python-devel여기서 'sudo'는 사용자 계정에 따라 선택 사항 일 수 있습니다.

참고 URL : https://stackoverflow.com/questions/3047848/why-cant-easy-install-find-mysqldb

반응형