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