记录一次安装pip包报错的问题(This error originates from a subprocess, and is likely not a problem with pip. )

环境:centos 6.5  python3.8.0

安装报错的包:

#autobahn==23.1.2
#cryptography==40.0.1
#daphne==4.0.0
#mysqlclient==2.1.1
#service-identity==21.1.0
#pyOpenSSL==23.1.1

安装上面包报错如下:

twisted_iocpsupport/iocpsupport.c: In function ‘__pyx_pymod_exec_iocpsupport’:
      twisted_iocpsupport/iocpsupport.c:8148: warning: implicit declaration of function ‘initWinsockPointers’
      twisted_iocpsupport/iocpsupport.c:8177: error: ‘lpConnectEx’ undeclared (first use in this function)
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for twisted-iocpsupport

Failed to build twisted-iocpsupport
ERROR: Could not build wheels for twisted-iocpsupport, which is required to install pyproject.toml-based projects

解决:

原因是包版本不兼容。需要降版本安装。

先执行:pip install autobahn==,看下目前需要有哪些版本可以装。然后从高到低逐个版本尝试安装。

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值