The script scrapy is installed in ‘/home/xxx/.local/bin’ which is not on PATH. Consider adding this

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/blime/.local/bin/:$PATH
当然这只是暂时解决问题,下次还是不行。要想一直可以的话,就要把这句话,写到~/.zshrc或者~/.bashrc中
写到那一个都没问题啦。
bash的用:~/.bashrc
zsh的用:~/.zshrc
sudo vim ~/.zshrc 
#把export PATH=/home/blime/.local/bin/:$PATH  放到最后
source ~/.zshrc  
#就好了
回答: 这个警告是因为脚本tqdm安装在'/Users/maxingmac/Library/Python/3.9/bin'路径下,但该路径不在PATH环境变量中。要解决这个问题,你可以考虑将该路径添加到PATH中,或者使用--no-warn-script-location参数来禁止显示该警告。 #### 引用[.reference_title] - *1* [超详细:command not found:scrapy解决办法(Mac下给zsh添加scrapy环境变量)](https://blog.csdn.net/weixin_52025885/article/details/120037624)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [Mac安装ipython3路径环境配置异常](https://blog.csdn.net/weixin_42681866/article/details/82800492)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [linux配置python3环境](https://blog.csdn.net/qq13933506749/article/details/121809792)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值