macOS Scrapy crawler zsh: command not found: scrapy solution

macOS Scrapy crawler zsh: command not found: scrapy solution

1, cause

I have been using scrapy on Windows10 before, and after I suddenly switched to Mac, I wanted to create a new Scrapy and found that the error of zsh: command not found: scrapy was always reported. After almost trying the online method, it still doesn't work, and this situation will still appear in the terminal.

insert image description here

2. Solve

This is because macOS comes with Python2, and the Scrapy command I run is a package installed after I installed Python3. The current installation directory is Python2 without a shortcut path for Scrapy. It can be solved by adding python3 -m before the original command. Yes, you can refer to it

Guess you like

Origin blog.csdn.net/a6661314/article/details/125643656