The script scrapy is installed in ‘/home/xxx/.local/bin’ which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
解決方法:
export PATH=/home/zzq/.local/bin/:$PATH
當然這只是暫時解決問題,下次還是不行。要想一直可以的話,就要把這句話,寫到~/.zshrc或者~/.bashrc中 寫到那一個都沒問題啦。 bash的用:~/.bashrc zsh的用:~/.zshrc
sudo vim ~/.zshrc #把export PATH=/home/zzq/.local/bin/:$PATH 放到最后 source ~/.zshrc #就好了