2

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 scrapy library for both python2/3).

It could recognise python version of my project at first. But it fails to work now.

1 Answer 1

7

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 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.