pypiserver:镜像上的build_ext?

时间:2013-06-24 12:19:32

标签: pip pypi

我们有一位当地的扑克玩家,到目前为止我们对它感到满意。

但是psycopg2会遇到麻烦。它希望安装pg_config。我没有看到它应该安装在镜像服务器上的原因。我知道它需要在我安装psycopg2的客户端上。

这是psycopg2中的错误吗?或者我使用错误的选项将包送到镜子?

pypi@gray:~> pip install --no-deps --no-install -d packages psycopg2
Downloading/unpacking psycopg2
  File was already downloaded packages/psycopg2-2.5.1.tar.gz
  Running 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 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'

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'.

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/pypi/tmp/pip-build/psycopg2
Storing complete log in /home/pypi/.config/pip/pip.log

我们使用此pypiserver:https://pypi.python.org/pypi/pypiserver

1 个答案:

答案 0 :(得分:0)

我知道这个问题已经有一年多了,但答案是pg_config是一个仅限linux的模块。您需要安装postgresql-devel才能获得它。