小编shu*_*ndu的帖子

pip install psycopg2==2.6 给出错误命令“python setup.py Egg_info”失败,错误代码 1 in /tmp/pip-build-f6rRmm/psycopg2/

我的项目正在运行 postgreSQL,在我将系统升级到 ubuntu 16.04 并再次克隆该项目后,我无法安装特定的包。

我也尝试清除 postgresql 和 psycopg2 但无法安装它

(temp) hellrazor@hellrazor-desktop:~/workspace/te___ave/backend/te___ave$ pip install psycopg2==2.6 > ERROR.txt
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-f6rRmm/psycopg2/
(temp) hellrazor@hellrazor-desktop:~/workspace/te___ave/backend/te___ave$ 
Run Code Online (Sandbox Code Playgroud)

这是我收到的错误

Collecting psycopg2==2.6
  Using cached psycopg2-2.6.tar.gz
    Complete output from command python setup.py egg_info:
    running egg_info
    creating pip-egg-info/psycopg2.egg-info
    writing pip-egg-info/psycopg2.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
    Error: pg_config executable not found.

    Please add the directory containing pg_config to the PATH
    or specify the full …
Run Code Online (Sandbox Code Playgroud)

installation pip psycopg2 python-2.7 postgresql-9.1

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

installation ×1

pip ×1

postgresql-9.1 ×1

psycopg2 ×1

python-2.7 ×1