您的位置:首页 > 运维架构 > Linux

centos 下安装 python 模块

2014-03-06 16:04 387 查看
(1)已安装pefile为例,在 https://code.google.com/p/pefile/ 处 下载tar.gz文件

(2)解压缩,tar -zxvf pefile-1.2.10-139.tar.gz

(3) cd pefile-1.2.1

python setup.py install

可能会出现

error: Python.h: No such file or directory
....
error: command 'gcc' failed with exit status 1
类似的错误,解决方法: yum install python-devel

(4) python
help()
modules
查看已经安装的module,查看是否有pefile

                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: