使用pip install psycopg2 报错如下:
Collecting psycopg2
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/84/d7/6a93c99b5ba4d4d22daa3928b983cec66df4536ca50b22ce5dcac65e4e71/psycopg2-2.8.4.tar.gz (377kB)
|████████████████████████████████| 378kB 41.4MB/s
ERROR: Command errored out with exit status 1:
command: /usr/bin/python2 -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-YZ7EqO/psycopg2/setup.py’"’"’; file=’"’"’/tmp/pip-install-YZ7EqO/psycopg2/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 pip-egg-info
cwd: /tmp/pip-install-YZ7EqO/psycopg2/
Complete output (27 lines):
/usr/lib64/python2.7/distutils/dist.py:2
python安装psycopg2 报错 ERROR: Command errored out with exit status 1
最新推荐文章于 2024-04-22 09:34:50 发布