Search code examples
pythonscrapysyntax-errortwistedpython-3.7

scrapy fail to cooperate with python3.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"

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

Could anyone please give me some advise?


Solution

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