vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 3
声望: 0
ERROR: Command errored out with exit status 1:
 command: /home/tarena/anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-amty57w1/psycopg2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-amty57w1/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 /tmp/pip-pip-egg-info-3rl3aicz
     cwd: /tmp/pip-install-amty57w1/psycopg2/
Complete output (9 lines):
[proxychains] DLL init: proxychains-ng 4.12
[proxychains] DLL init: proxychains-ng 4.12
running egg_info
creating /tmp/pip-pip-egg-info-3rl3aicz/psycopg2.egg-info
writing /tmp/pip-pip-egg-info-3rl3aicz/psycopg2.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-3rl3aicz/psycopg2.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-pip-egg-info-3rl3aicz/psycopg2.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-3rl3aicz/psycopg2.egg-info/SOURCES.txt'
Error: b'[proxychains] DLL init: proxychains-ng 4.12\n'
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Administrator
avatar
加入于:
帖子: 4130
声望: 230

pip install psycopg2-binary

试试这么做

Member
avatar
加入于:
帖子: 3
声望: 0

用Python的交易员 wrote:

pip install psycopg2-binary

试试这么做

早安装过了

pip install psycopg2-binary
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: psycopg2-binary in ./anaconda3/lib/python3.7/site-packages (2.8.5)

Member
avatar
加入于:
帖子: 3
声望: 0

pip install psycopg2
Defaulting to user installation because normal site-packages is not writeable
Collecting psycopg2
Using cached psycopg2-2.8.5.tar.gz (380 kB)
ERROR: Command errored out with exit status 1:
command: /home/tarena/anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jtpscovz/psycopg2/setup.py'"'"'; file='"'"'/tmp/pip-install-jtpscovz/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 /tmp/pip-pip-egg-info-qvch8e3d
cwd: /tmp/pip-install-jtpscovz/psycopg2/
Complete output (7 lines):
running egg_info
creating /tmp/pip-pip-egg-info-qvch8e3d/psycopg2.egg-info
writing /tmp/pip-pip-egg-info-qvch8e3d/psycopg2.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-qvch8e3d/psycopg2.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-pip-egg-info-qvch8e3d/psycopg2.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-qvch8e3d/psycopg2.egg-info/SOURCES.txt'

Error: b'You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.\n'
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Administrator
avatar
加入于:
帖子: 4130
声望: 230

那就不用管这个psycopg安装失败的报错了,没影响的

© 2015-2019 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号-3