반응형
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
반응형
'Program Tip' 카테고리의 다른 글
오류 C2065 : 'cout': 선언되지 않은 식별자 (0) | 2020.11.13 |
---|---|
xampp에서 컬을 활성화하는 방법은 무엇입니까? (0) | 2020.11.13 |
JS 배열을 N 배열로 분할 (0) | 2020.11.13 |
필드를 비활성화하지 않고 사용자가 텍스트 필드에 입력하는 것을 방지하는 방법은 무엇입니까? (0) | 2020.11.12 |
Zipalign-명령을 찾을 수 없음-MAC 터미널 (0) | 2020.11.12 |