pip 安装 psycopg2 安装及错误处理
2014-11-12 17:48
127 查看
错误及现象 Error: pg_config executable not found.
Downloading/unpacking psycopg2
Downloading psycopg2-2.5.4.tar.gz (682kB): 682kB downloaded
Running setup.py (path:/home/ql/.pyenv/versions/py2/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 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'.
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/ql/.pyenv/versions/py2/build/psycopg2
Storing debug log for failure in /tmp/tmpDCTXLA
错误原因:
Error: pg_config executable not found.
2)pip install psycopg2
Downloading/unpacking psycopg2
Downloading psycopg2-2.5.4.tar.gz (682kB): 682kB downloaded
Running setup.py (path:/home/ql/.pyenv/versions/py2/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 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'.
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/ql/.pyenv/versions/py2/build/psycopg2
Storing debug log for failure in /tmp/tmpDCTXLA
错误原因:
Error: pg_config executable not found.
pg_configis in
postgresql-devel(
libpq-devin Debian/Ubuntu)
1)安装libpq-dev
sudo apt-get install libpq-dev python-dev
2)pip install psycopg2
相关文章推荐
- pip安装pygments错误处理
- Python使用pip install psycopg2安装psycopg2包出现python setup.py egg_info failed with error code 1 in /tmp/pip-build-YtLeN3/psycopg2错误处理
- python pip安装scrapy各种错误处理
- expdp在database vault安装后错误的处理
- 安装SQL SERVER 2005出现“无法在 COM+ 目录中安装和配置程序集”错误处理
- 安装完毕后的报表错误处理
- Amule的linux下安装、配置详解及错误处理办法
- wine 安装一些windows软件的错误以及处理
- 【转】sql2005安装过程owc11错误处理
- ns2 安装所有可能错误处理
- 关于远程安装oracle与错误的处理
- 安装SQL SERVER 2005出现“无法在 COM+ 目录中安装和配置程序集”错误处理
- VB做的安装包,在安装时可能出现的错误,处理办法
- 安装TFS (Team Foundation Server)错误处理
- Linux下安装oracle 10g 时环境检测 DHCP错误的处理
- 数据库安装错误的解决方式 【转】如何处理 SQL Server 安装过程中的 COM+ 检查失败问题 - ...
- 如何处理在WINDOWS VISTA上安装VS2008时遇到要求安装WINDOWS XP SP2的错误和QQ对战平台安装后不能登录的问题
- bugfree2.0.3 安装时候错误处理----安装后无法查看统计报表
- 安装QTE的过程中出现 no such file qconfig-qvfb.h 的错误处理
- 安装libpcap错误处理