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.


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  
#就好了

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM