我试图在我的virtualenv中使用pip安装psycopg2。 但是,我正在错误以下。 我已经安装了psycopg2-binary 但我仍然低于错误。 请为我提出解决这个问题的方法。
错误:
(env) ➜ bootcamp git:(master) pip install psycopg2
Collecting psycopg2
Using cached psycopg2-2.8.6.tar.gz (383 kB)
Building wheels for collected packages: psycopg2
Building wheel for psycopg2 (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/soubhagyapradhan/Desktop/upwork/quinn/bootcamp/env/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/p_/fpfgyxqd4054nrz482x5z3_m0000gn/T/pip-install-td3jkgfc/psycopg2/setup.py'"'"'; __file__='"'"'/private/var/folders/p_/fpfgyxqd4054nrz482x5z3_m0000gn/T/pip-install-td3jkgfc/psycopg2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/p_/fpfgyxqd4054nrz482x5z3_m0000gn/T/pip-wheel-ops48_8u
cwd: /private/var/folders/p_/fpfgyxqd4054nrz482x5z3_m0000gn/T/pip-install-td3jkgfc/psycopg2/
答案 0 :(得分:0)
尝试使用以下命令升级pip。
pip install -U pip