会员可以在此提问,百战程序员老师有问必答
对大家有帮助的问答会被标记为“推荐”
看完课程过来浏览一下别人提的问题,会帮你学得更全面
截止目前,同学们一共提了 132358个问题

老师,能不能帮下忙,这是我的一个面试题,实在不知道怎么解决了

https://data.weibo.com/index/newindex?visit_type=trend&wid=1091324264913&dateGroup=3month

要访问这个地址获取中间搜索词为病毒的30天数据,但是他的web端关闭了,只能在手机端上去解决,但是手机端又有ajax请求我实在是解决不了了,拜托拜托

Python 全系列/第十五阶段:Python 爬虫开发/爬虫数据存储 121楼
Python 全系列/第十五阶段:Python 爬虫开发/scrapy框架使用(旧) 123楼
Python 全系列/第十五阶段:Python 爬虫开发/爬虫基础(旧) 125楼

分享,解决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 爬虫开发/分布式爬虫 126楼
Python 全系列/第十五阶段:Python 爬虫开发/爬虫反反爬- 127楼
Python 全系列/第十五阶段:Python 爬虫开发/爬虫基础 129楼
Python 全系列/第十五阶段:Python 爬虫开发/动态数据抓取 130楼
Python 全系列/第十五阶段:Python 爬虫开发/Python爬虫基础与应用 131楼
Python 全系列/第十五阶段:Python 爬虫开发/爬虫基础 135楼

课程分类

百战程序员微信公众号

百战程序员微信小程序

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