Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Scraping Data From the Web A World Full of Spiders Installing Scrapy

Jiawei Hu
Jiawei Hu
9,740 Points

bash: scrapy: command not found

By writing "scrapy startproject AraneaSpider" the system says:

bash: scrapy: command not found

what should I do?

2 Answers

Steven Parker
Steven Parker
218,692 Points

It sounds like you have not have the "scrapy" application on your system. You probably need to get the latest version of scrapy and install it.

If you're sure you do have it already, it may be installed in a location that isn't part of your execution path (the "PATH" environment variable). In that case, you may only need to expand your PATH to include it.

Jiawei Hu
Jiawei Hu
9,740 Points

Thank you for the response, the version of Scrapy that I have is 1.6 and I can find it in

External Libraries/<Python3.6>/Site-packages

Not sure if that's the right place for it to be.