centos 下安装 python 模块

来源:互联网 发布:广联达软件有哪些 编辑:程序博客网 时间:2024/04/30 09:20

(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

0 0
原创粉丝点击