Scrapy Installation and “ command not found: scrapy” Error Handling

项月亮
1 min readMar 2, 2019

--

Usually, we can easily install scrapy on Linux and macOS by command

$ pip3 install scrapy

This way works well on Ubuntu or Debian, but on macOS, when you finish the installation process and want to use it, error maybe occur

$ scrapy
zsh:command not found: scrapy

To fix this problem, you can create a soft link by command

$ sudo ln -s /Library/Frameworks/Python.framework/Versions/3.7/bin/scrapy /usr/local/bin/scrapy

Notification

Considering your Python’s Version may be different. “/Library/Frameworks/Python.framework/Versions/3.7/bin/scrapy” may be different on your personal. To ensure this, you can find your Python’s path by

which python3

Then find your scrapy in this directory and modify the “/Library/Frameworks/Python.framework/Versions/3.7/bin/scrapy”.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Responses (1)

Write a response