gpt4 book ai didi

python - 为什么easy_install找不到MySQLdb?

转载 作者:IT老高 更新时间:2023-10-28 12:53:33 25 4
gpt4 key购买 nike

这是我尝试过的:

$ 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 install MySQL-python

关于python - 为什么easy_install找不到MySQLdb?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3047848/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com