[英]I can not Install pyscopg2 with sudo yum install django pyscopg2. on centos7
Installation will endup with this message.安装将结束此消息。
Command "/usr/bin/python3.4 -u -c "import setuptools, tokenize;命令“/usr/bin/python3.4 -u -c”导入setuptools,tokenize; file ='/tmp/pip-nbderdof-build/setup.py';f=getattr(tokenize, 'open', open)( file );code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, file , 'exec'))" install --record /tmp/pip-p07ubkfd-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-nbderdof-build/ (myprojectenv) [anyuser@localhost myproject]$ file ='/tmp/pip-nbderdof-build/setup.py';f=getattr(tokenize, 'open', open)( file );code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, file , 'exec'))" install --record /tmp/pip-p07ubkfd-record/install-record.txt --single-version-外部管理的 --compile" 失败,错误代码 1 在 /tmp/pip-nbderdof-build/ (myprojectenv) [anyuser@localhost myproject]$
也许你需要安装python-devel
包:
sudo yum install python-devel
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.