src/MD2.c:31:20: 错误:Python.h:没有那个文件或目录

在尝试在CentOS上安装fabric时遇到问题,pip安装过程中提示'Python.h: 没有那个文件或目录'。这表明缺少Python的开发头文件。解决方案是安装Python的开发包,例如`yum install python3-devel`,以确保编译过程能正确进行。
摘要由CSDN通过智能技术生成

一、前言

                  在CentOS 上安装fabric时出现问题,首先已安装pip, 用pip执行以下命令pip install 

出现以下问题

[niy@niy-computer /]$ sudo pip install fabric
Requirement already satisfied (use --upgrade to upgrade): fabric in /usr/lib/python2.6/site-packages/Fabric-1.3.1-py2.6.egg
Requirement already satisfied (use --upgrade to upgrade): ssh>=1.7.8 in /usr/lib/python2.6/site-packages/ssh-1.8.0-py2.6.egg (from fabric)
Downloading/unpacking pycrypto>=2.1,!=2.4 (from ssh>=1.7.8->fabric)
  Running setup.py egg_info for package pycrypto
Installing collected packages: pycrypto
  Found existing installation: pycrypto 2.0.1
    Uninstalling pycrypto:
      Successfully uninstalled pycrypto
  Running setup.py install for pycrypto
    warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
    building 'Crypto.Hash._MD2' extension
    gcc -pthread -fno-strict-aliasing -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/python2.6 -c src/MD2.c -o build/temp.linux-i686-2.6/src/MD2.o
    src/MD2.c:31:20: 错误:Python.h:没有那个文件或目录
    src/MD2.c:131: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    In file included from src/MD2.c:147:
    src/hash_template.c:48: 错误:expected specifier-qualifier-list befo
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值