pip 安装过程中依赖处理
2015-05-06 16:14
549 查看
错误一:pip install M2Crypto 如下错误
copying M2Crypto/SSL/ssl_dispatcher.py -> build/lib.linux-x86_64-2.6/M2Crypto/SSL
running build_ext
building 'M2Crypto.__m2crypto' extension
swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
swig -python -I/usr/include/python2.6 -I/usr/include -I/usr/include/openssl -includeall -modern -D__x86_64__ -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
SWIG/_m2crypto.i:30: Error: Unable to find 'openssl/opensslv.h'
SWIG/_m2crypto.i:33: Error: Unable to find 'openssl/safestack.h'
SWIG/_evp.i:12: Error: Unable to find 'openssl/opensslconf.h'
SWIG/_ec.i:7: Error: Unable to find 'openssl/opensslconf.h'
error: command 'swig' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-3lUDcU/M2Crypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-eSjJaS-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-3lUDcU/M2Crypto
解决办法如下:yum install openssl-devel
[root@localhost fuwo_web]# yum install openssl-devel
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.skyshe.cn
* epel: ftp.sjtu.edu.cn
* extras: mirrors.pubyun.com
* updates: mirror.bit.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
正确结果如下:
.0.3->-r requirements.txt (line 19))
Installing collected packages: M2Crypto, torndb
Running setup.py install for M2Crypto
Running setup.py install for torndb
Successfully installed M2Crypto-0.22.3 torndb-0.3
copying M2Crypto/SSL/ssl_dispatcher.py -> build/lib.linux-x86_64-2.6/M2Crypto/SSL
running build_ext
building 'M2Crypto.__m2crypto' extension
swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
swig -python -I/usr/include/python2.6 -I/usr/include -I/usr/include/openssl -includeall -modern -D__x86_64__ -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
SWIG/_m2crypto.i:30: Error: Unable to find 'openssl/opensslv.h'
SWIG/_m2crypto.i:33: Error: Unable to find 'openssl/safestack.h'
SWIG/_evp.i:12: Error: Unable to find 'openssl/opensslconf.h'
SWIG/_ec.i:7: Error: Unable to find 'openssl/opensslconf.h'
error: command 'swig' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-3lUDcU/M2Crypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-eSjJaS-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-3lUDcU/M2Crypto
解决办法如下:yum install openssl-devel
[root@localhost fuwo_web]# yum install openssl-devel
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.skyshe.cn
* epel: ftp.sjtu.edu.cn
* extras: mirrors.pubyun.com
* updates: mirror.bit.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
正确结果如下:
.0.3->-r requirements.txt (line 19))
Installing collected packages: M2Crypto, torndb
Running setup.py install for M2Crypto
Running setup.py install for torndb
Successfully installed M2Crypto-0.22.3 torndb-0.3
相关文章推荐
- windows下用pip安装paramiko------安装过程 依赖的模块pycrypto安装出了问题如何解决
- vim安装过程中所涉及的问题及处理办法
- 安装Oracle11gR2先决条件检查失败的详细解决处理过程
- Centos 6.5 python 2.6.6 升级到 2.7.3,并安装easy_install和pip工具过程
- Python 3.6.4 / win10 使用pip安装keras时遇到依赖的PyYAML安装出错
- pip、NumPy、Matplotlib在Windows上的安装过程
- libsvm 安装过程中的一些错误和处理方式
- 在虚拟机上安装 Oracle 11g RAC 过程中遇 SCAN Name 配置错误的处理办法
- VMware6.5安装Fedora14 安装 VMware Tools 头文件不匹配的处理过程
- 记录重装系统+安装python IDE +各种python依赖过程
- pip安装依赖six-1.4.1失败解决方案
- windows下Python2与Python3共存的使用方法以及pip的使用方法以及pip安装报错:is not a supported wheel on this platform的处理方法
- centos6.2 linux安装php过程及配置错误处理 configure: error: xml2-config not found. Please check your libxml2 i
- centos 6 升级python2.6 到2.7,安装pip过程
- vim安装过程中所涉及的问题及处理办法
- ubuntu安装openssh-server 报依赖错误的解决过程
- Python 3.6.4 / win10 使用pip安装keras时遇到依赖的PyYAML安装出错
- 制作python docker镜像遇到pip安装依赖包ascii codec cant decode byte错误及解决方法
- Oracle EBS R12 运行adadmin 安装中文语言包过程中意外中断后的处理