马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
这个怎么解决才能成功安装库
**************deapple$ pip install mysql
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/mysql/
Collecting mysql
Using cached mysql-0.0.2.tar.gz (1.9 kB)
Collecting mysqlclient
Using cached mysqlclient-2.0.1.tar.gz (87 kB)
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/3r/0cbh6s212zb98slf61q37bs80000gn/T/pip-install-1d7098sg/mysqlclient/setup.py'"'"'; __file__='"'"'/private/var/folders/3r/0cbh6s212zb98slf61q37bs80000gn/T/pip-install-1d7098sg/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/3r/0cbh6s212zb98slf61q37bs80000gn/T/pip-pip-egg-info-jzjbmo18
cwd: /private/var/folders/3r/0cbh6s212zb98slf61q37bs80000gn/T/pip-install-1d7098sg/mysqlclient/
Complete output (12 lines):
/bin/sh: mysql_config: command not found
/bin/sh: mariadb_config: command not found
/bin/sh: mysql_config: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/3r/0cbh6s212zb98slf61q37bs80000gn/T/pip-install-1d7098sg/mysqlclient/setup.py", line 15, in <module>
metadata, options = get_config()
File "/private/var/folders/3r/0cbh6s212zb98slf61q37bs80000gn/T/pip-install-1d7098sg/mysqlclient/setup_posix.py", line 65, in get_config
libs = mysql_config("libs")
File "/private/var/folders/3r/0cbh6s212zb98slf61q37bs80000gn/T/pip-install-1d7098sg/mysqlclient/setup_posix.py", line 31, in mysql_config
raise OSError("{} not found".format(_mysql_config_path))
OSError: mysql_config not found
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
试试这样把:
python -m pip install mysql -i https://pypi.tuna.tsinghua.edu.cn/simple
|