How do I use scrapy in different versions of python

后端 未结 1 353
北海茫月
北海茫月 2021-01-15 02:31

I enter \'scrapy crawl PROJECT_NAME\' in terminal and try to run a project coded with python2 but terminal tries to use scrapy in python3 and keeps reporting error(I have sc

相关标签:
1条回答
  • 2021-01-15 03:06

    Just specify the python you want to run scrapy with:

    python2 -m scrapy crawl PROJECT_NAME
    

    Or even more precise:

    /path/to/python/executable/python -m scrapy crawl PROJECT_NAME
    
    0 讨论(0)
提交回复
热议问题