Skip to content
This repository has been archived by the owner on Jul 10, 2020. It is now read-only.

psycopg2安装失败 #1

Closed
Vito-Wang opened this issue Jan 19, 2017 · 3 comments
Closed

psycopg2安装失败 #1

Vito-Wang opened this issue Jan 19, 2017 · 3 comments

Comments

@Vito-Wang
Copy link

之前通过requirement.txt 安装时失败了,然后单独安装,还是不行。

(venv)root@vitowang-VirtualBox:~/workspace/workspace/todo# pip install psycopg2
Downloading/unpacking psycopg2
  Downloading psycopg2-2.6.2.tar.gz (376kB): 376kB downloaded
  Running setup.py (path:/home/vitowang/workspace/workspace/todo/venv/build/psycopg2/setup.py) egg_info for package psycopg2
    
    Error: pg_config executable not found.
    
    Please add the directory containing pg_config to the PATH
    or specify the full executable path with the option:
    
        python setup.py build_ext --pg-config /path/to/pg_config build ...
    
    or with the pg_config option in 'setup.cfg'.
    Complete output from command python setup.py egg_info:
    running egg_info

creating pip-egg-info/psycopg2.egg-info

writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt

writing pip-egg-info/psycopg2.egg-info/PKG-INFO

writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt

writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'

warning: manifest_maker: standard file '-c' not found



Error: pg_config executable not found.



Please add the directory containing pg_config to the PATH

or specify the full executable path with the option:



    python setup.py build_ext --pg-config /path/to/pg_config build ...



or with the pg_config option in 'setup.cfg'.

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/vitowang/workspace/workspace/todo/venv/build/psycopg2
Storing debug log for failure in /home/vitowang/.pip/pip.log

@greyli
Copy link
Member

greyli commented Jan 19, 2017

本地安装不需要psycopg2包,这个包是部署Heroku用的

@Vito-Wang
Copy link
Author

@greyli ok了,可以运行了,其他3个包是在服务端安装的吧。

@greyli
Copy link
Member

greyli commented Jan 19, 2017

嗯,是的

@greyli greyli closed this as completed Jan 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants