1
我們有一個當地的pypiserver,到現在我們很滿意。pypiserver:build_ext在鏡像上?
但psycopg2製造麻煩。它希望安裝pg_config。我沒有看到它應該安裝在鏡像服務器上的原因。我知道它需要在安裝psycopg2的客戶端上。
這是psycopg2中的一個錯誤?或者,我是否使用錯誤的選項將包裝拿到鏡子上?
[email protected]:~> 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
我們希望在我們的pypi-server上提供該軟件包。我們不想在那裏安裝軟件包。爲什麼在pypi服務器上需要postgresql-devel?我不明白。 – guettli