会员可以在此提问,百战程序员老师有问必答
对大家有帮助的问答会被标记为“推荐”
看完课程过来浏览一下别人提的问题,会帮你学得更全面
截止目前,同学们一共提了 132465个问题
JAVA 全系列/第三阶段:数据库编程/MySQL数据库的使用 5431楼
Python 全系列/第七阶段:网页编程基础/jquery 5434楼

分享,解决centos6.8上安装Twisted-19.7.0报错"ModuleNotFoundError: No module named '_ctypes'"的方法考网上解决办法:

  1. 安装外部函数库(libffi)

    yum install libffi-devel -y
  2. 重新安装python

  3. 用pip3 Install 安装需要的包

    再次报错:distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('incremental>=16.10.1')

参考网上解决办法:

yum install -y epel-release
yum install -y python-pip
pip3 install incremental -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
cd Twisted-19.7.0
python3 setup.py install

再次报错:error: Could not find suitable distribution for Requirement.parse('attrs>=17.4.0')

解决办法

pip3 install attrs -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
cd Twisted-19.7.0
python3 setup.py install

再次报错:error: Could not find suitable distribution for Requirement.parse('PyHamcrest>=1.9.0')

pip3 install PyHamcrest -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
cd Twisted-19.7.0
python3 setup.py install

再次报错:error: Could not find suitable distribution for Requirement.parse('hyperlink>=17.1.1')

pip3 install hyperlink -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
cd Twisted-19.7.0
python3 setup.py install

再次报错:error: Could not find suitable distribution for Requirement.parse('Automat>=0.3.0')

pip3 install Automat -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip3 install constantly -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip3 install zope.interface -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
cd Twisted-19.7.0
python3 setup.py install

执行上述操作后:linux界面提示Finished processing dependencies for Twisted==19.7.0



Python 全系列/第十五阶段:Python 爬虫开发/分布式爬虫 5435楼
JAVA 全系列/第一阶段:JAVA 快速入门/JAVA入门和背景知识 5436楼
WEB前端全系列/第七阶段:ECMAScript6新特性模块/ES6 第一部分 5437楼
JAVA 全系列/第八阶段:SpringBoot与MybatisPlus/Spring Boot(旧) 5438楼
JAVA 全系列/第二十九阶段:数据结构和算法BATJ大厂面试重难点/字符串和矩阵 5439楼
Python 全系列/第十一阶段:重量级Web框架-Django/Redis的入门与应用(拓展) 5442楼
JAVA 全系列/第三阶段:数据库编程/Oracle 数据库的使用 5443楼
WEB前端全系列/第二阶段:JavaScript编程模块/正则对象 5445楼

课程分类

百战程序员微信公众号

百战程序员微信小程序

©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园
网站维护:百战汇智(北京)科技有限公司
京公网安备 11011402011233号    京ICP备18060230号-3    营业执照    经营许可证:京B2-20212637