pg_config executable not found
完整报错如下:
(python3.7) appleyuchi@ubuntu19:django-oscar$ pip install -r requirements_migrations.txt
Looking in indexes: http://pypi.douban.com/simple
Collecting PyMySQL==0.9.3
Downloading http://pypi.doubanio.com/packages/ed/39/15045ae46f2a123019aa968dfcba0396c161c20f855f11dea6796bcaae95/PyMySQL-0.9.3-py2.py3-none-any.whl (47 kB)
|████████████████████████████████| 47 kB 14.1 MB/s
Collecting psycopg2==2.8.4
Downloading http://pypi.doubanio.com/packages/84/d7/6a93c99b5ba4d4d22daa3928b983cec66df4536ca50b22ce5dcac65e4e71/psycopg2-2.8.4.tar.gz (377 kB)
|████████████████████████████████| 377 kB 2.0 MB/s
ERROR: Command errored out with exit status 1:
command: /home/appleyuchi/.virtualenvs/python3.7/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3pvirr0y/psycopg2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3pvirr0y/psycopg2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-3pvirr0y/psycopg2/pip-egg-info
cwd: /tmp/pip-install-3pvirr0y/psycopg2/
Complete output (23 lines):
running egg_info
creating /tmp/pip-install-3pvirr0y/psycopg2/pip-egg-info/psycopg2.egg-info
writing /tmp/pip-install-3pvirr0y/psycopg2/pip-egg-info/psycopg2.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-install-3pvirr0y/psycopg2/pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-install-3pvirr0y/psycopg2/pip-egg-info/psycopg2.egg-info/top_level.txt
writing manifest file '/tmp/pip-install-3pvirr0y/psycopg2/pip-egg-info/psycopg2.egg-info/SOURCES.txt'
Error: pg_config executable not found.
pg_config is required to build psycopg2 from source. 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'.
If you prefer to avoid building psycopg2 from source, please install the PyPI
'psycopg2-binary' package instead.
For further information please check the 'doc/src/install.rst' file (also at
<http://initd.org/psycopg/docs/install.html>).
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
解决方案:
apt install libpq-dev
pg_config executable not found相关推荐
- 【pip install psycopg2安装报错】Error: pg_config executable not found.
背景 在pip install psycopg2-binary 的时候报错了.错误内容如下. Collecting psycopg2-binaryUsing cached psycopg2-binar ...
- 安装 psycopg2 的问题:pg_config executable not found
使用 pip install psycopg2,特么报错,Error: pg_config executable not found. 网上搜索下,说需要安装 pg 和 py 的驱动: Debian系 ...
- 安装配置postgreSQL+pgcli+pgadmin3
记录了postgreSQL数据库的完整的安装配置过程,以及postgreSQL的pgcli命令行智能提醒扩展,pgadmin3图形化管理客户端的配置安装.此postgresql是bigsql版安装详情 ...
- python3.8还是3.7_选择 Python3.6 还是 Python 3.7
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 选择 Python3.6 还是 Python 3.7 Python 3.7 已经发布了, 又有新版本玩喽!!但是有选择症的你,怎么办呢?像追剧一样,赶快升 ...
- python psycopg2_如何在Python上用“pip”安装psycopg2?
如何在Python上用"pip"安装psycopg2? 我正在使用virtualenv,我需要安装"psycopg2". 我做了以下事情:pip install ...
- python3.7怎么安装django_python开发笔记-Python3.7+Django2.2 Docker镜像搭建
*********************************************** ************************************************ 目标镜 ...
- python3学哪个版本好玩_python2和python3到底应该学哪个好?
许多刚入门 Python 的朋友都在纠结的的问题是:我应该选择学习 python2 还是 python3,Python 3.7 已经发布了,目前Python的用户,主要使用的版本 应该是 Python ...
- python 3.5 3.6 3.7_选择 Python3.6 还是 Python 3.7
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 选择 Python3.6 还是 Python 3.7 Python 3.7 已经发布了, 又有新版本玩喽!!但是有选择症的你,怎么办呢?像追剧一样,赶快升 ...
- 选择 Python3.6 还是 Python 3.7
转自: 白月黑羽在线教程:http://www.python3.vip/doc/blog/python/home/ 选择 Python3.6 还是 Python 3.7 Python 3.7 已经发布 ...
最新文章
- java 右键获取路径,java路径
- OSI参考模型与TCP/IP协议的比较研究
- python保存两位小数的几种方法,python2保留小数
- Vue iView Admin 动态路由菜单加载 前后端分离(springboot 2.x iview admin vue 前后端分离 模型设计器 动态数据权限...
- 【机器学习基础】一文归纳AI调参炼丹之法
- matlab中打不开保存好的模糊控制器,【求助大神】模糊控制器仿真,在Simulink运行时出现问题...
- javaweb学习6——自定义标签
- 三、Python-列表
- Symbian和C++ SDK开发入门之运行
- MongoDB工具最新进展
- AutoCAD ObjectARX(VC)开发基础与实例教程2014版光盘镜像
- .net mvc ajax重定向,如何在MVC3 JQuery的Ajax调用重定向到新的页面(连同模型)(How to redirec...
- Docker技术入门与实战 第二版-学习笔记-9-Docker Compose 项目-1-举例说明
- 四川大学转专业计算机条件,四川大学转专业需要什么条件
- 手写数字识别--Android Studio 加载tensorflow模型
- 腾讯技术专家解读《FinOps,从上云到上好云》
- 一篇标准的审稿意见回复(Response to reviewer)是什么样的?
- 线上教学困难多?来试试轻量级互动课堂方案
- IBM z15揭开面纱,多项业界首创技术护航混合多云安全
- selenium不打开浏览器进行自动化操作