scrapy与python3.7无法配合 [英] scrapy fail to cooperate with python3.7

查看:84
本文介绍了scrapy与python3.7无法配合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过pip命令安装twis​​ted失败,所以我手动下载了.whl文件并安装了它(版本18.7.0).只有在我这样做之后,我的笔记本电脑才能安装scrapy;但是,似乎twisted 包与python 3.7 不兼容,并且一直提示语法错误"

I failed to install twisted by pip command, so I manually downloaded the .whl file and got it installed( version 18.7.0). Only after i did that, my laptop could install scrapy; however, it seems that the twisted package is not compatible with python 3.7 and it keeps saying "syntax error"

我尝试了一些在 Github 上发布的关于这个问题的方法(https://github.com/scrapy/scrapy/issues/3143),但没有一个解决它.我想知道我是否需要转移到 python 3.6?因为我的python蜘蛛只能设置它的下载器而不能解析网页

I have tried some method posted on the Github about this issue(https://github.com/scrapy/scrapy/issues/3143), but none of them solve it. I wonder whether I need to shift to python 3.6 or not? cause my python spider can only setup it's downloader and cannot parse webpages

谁能给我一些建议?

推荐答案

是的.Twisted 尚不支持 Python 3.7.尝试使用 Python 3.6 或更早版本.

Yes. Twisted does not yet support Python 3.7. Try Python 3.6 or earlier.

这篇关于scrapy与python3.7无法配合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆