centos7.6安装psycopg2
如果有下面的异常信息,则先安装postgresql-devel*
yum install postgresql-devel*
再安装
pip3 install psycopg2
异常:
Collecting psycopg2Using cached psycopg2-2.8.6.tar.gz (383 kB)ERROR: Command errored out with exit status 1:command: /usr/local/python3/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-cccqzv8r/psycopg2_106c8876db424e0f88677f9a7c8e1a77/setup.py'"'"'; __file__='"'"'/tmp/pip-install-cccqzv8r/psycopg2_106c8876db424e0f88677f9a7c8e1a77/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-pip-egg-info-kml0fc5pcwd: /tmp/pip-install-cccqzv8r/psycopg2_106c8876db424e0f88677f9a7c8e1a77/Complete output (23 lines):running egg_infocreating /tmp/pip-pip-egg-info-kml0fc5p/psycopg2.egg-infowriting /tmp/pip-pip-egg-info-kml0fc5p/psycopg2.egg-info/PKG-INFOwriting dependency_links to /tmp/pip-pip-egg-info-kml0fc5p/psycopg2.egg-info/dependency_links.txtwriting top-level names to /tmp/pip-pip-egg-info-kml0fc5p/psycopg2.egg-info/top_level.txtwriting manifest file '/tmp/pip-pip-egg-info-kml0fc5p/psycopg2.egg-info/SOURCES.txt'Error: pg_config executable not found.pg_config is required to build psycopg2 from source. Please add the directorycontaining pg_config to the $PATH or specify the full executable path with theoption: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<https://www.psycopg.org/docs/install.html>).----------------------------------------
centos7.6安装psycopg2相关推荐
- Centos7.4安装Nginx
Centos7.4安装Nginx 使用yum命令 一.安装准备 首先由于nginx的一些模块依赖一些lib库,所以在安装nginx之前,必须先安装这些lib库,这些依赖库主要有g++.gcc.open ...
- Centos7下安装Docker
Centos7下安装Docker(详细的新手装逼教程) 参考: https://www.cnblogs.com/qgc1995/archive/2018/08/29/9553572.html 早就听说 ...
- Centos7.4安装kvm虚拟机(使用virt-manager管理)
2019独角兽企业重金招聘Python工程师标准>>> Centos7.4安装kvm虚拟机(使用virt-manager管理) 之前介绍了使用WebVirtMgr或Openstack ...
- Centos7上安装oracle11g/12c的安装教程推荐及注意事项
Centos7上安装oracle11g的安装教程推荐及注意事项 历时一天半,终于在今天中午安装完oracle11g,成功后喜悦的心情自是溢于言表.总有些疑问,比如为何如此复杂的数据库为何还会有如此之多 ...
- centos7上安装redis6-0-5
下载tar包 wget http://download.redis.io/releases/redis-6.0.5.tar.gz 解压tar包 tar -zxvf redis-6.0.5.tar.gz ...
- Centos7 上安装 mysql5.7
Centos7 上安装 mysql5.7 **文章没有图片效果,想看带图片的到文章末尾加我微信公众号,搜索标题就能看到了** 文章没有图片效果,想看带图片的到文章末尾加我微信公众号,搜索标题就能看 ...
- centos7离线安装ansible
centos7离线安装ansible: 1.通过在线的centos7将rpm包下载好了,上传到指定服务器. 下载官方repo,rpm -iUvh http://dl.Fedoraproject.org ...
- (正确姿势)Centos7如何安装Nvidia驱动并安装Pytorch使用GPU
准备工作 bios禁用secure boot,也就是设置为disable. yum install gcc,这个系统我是最小化安装的,默认没有,所以需要安装. yum install kernel*, ...
- CentOS7.3 安装配置 Nginx、MariaDB、PHP
CentOS7.3 安装配置 Nginx.MariaDB.PHP 配置 nginx 安装参数并安装 配置 以下参数也可以在后期通过配置 conf 文件进行配置 基本配置如下 ./configure - ...
最新文章
- java se 与j2se_关于java:J2EE和J2SE项目之间的区别
- 十三、熵编码算法(3):CAVLC原理
- mpython_mPython
- [AGC014D] Black and White Tree(树形DP,博弈)
- python--------进程与线程
- linux关机机器语言,Linux 核心源代码分析 - 第十章 开机 关机 [续二] [超星]...
- SAP FB60\FB70\MIRO 默认税码配置
- 2的指数字节转与MB、GB换算关系
- 【Web安全笔记】之【6.0 内网渗透】
- win10系统优化---持续整理中
- MT6755/HelioP10处理器性能,MT6755芯片规格资料
- 公众号绑定开发者流程
- 使用restTemplate启动报错:Field restTemplate in com.demo.service.OrderToMemberService required a bean of ty
- matlab行星运动轨迹仿真动画,利用Matlab可视化功能实现微分方程求解行星运动轨迹...
- 计算机类专业知识pdf,事业单位计算机专业知识整理(全)(20210324075052).pdf
- Ubuntu下查看cuda版本
- Java韩顺平02变量
- python中flatten_Python中flatten( )函数及函数用法详解
- centos 7, 安装网卡驱动过程记录
- matlab :检测文档图片中的字母l