scrapy 无法与 python3.7 合作

scrapy fail to cooperate with python3.7

我通过pip命令安装twis​​ted失败,所以我手动下载了.whl文件并安装了它(版本18.7.0)。只有在我这样做之后,我的笔记本电脑才能安装 scrapy;然而,扭曲的包似乎与 python 3.7 不兼容,它一直说 "syntax error"

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

谁能给我一些建议吗?

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

the issue 的评论之一帮助了我:

pip install git+https://github.com/scrapy/scrapy@master --no-dependencies --upgrade