-bash: /usr/bin/pip3: No such file or directory
时间: 2023-08-23 22:07:39 浏览: 203
linux输入yum后提示: -bash: /usr/bin/yum: No such file or directory的解决方法
5星 · 资源好评率100%
回答: 出现该错误的原因是由于pip在缓存中被存储为/usr/bin/pip,而实际上pip的位置是/usr/local/bin/pip。你可以通过清除缓存来解决这个问题。可以使用以下命令清除缓存:
```
hash -r
```
清除缓存后,再次使用pip命令应该就可以正常工作了。希望对你有帮助!<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [linux pip已经安装,提示/usr/bin/pip: No such file or directory](https://blog.csdn.net/qingfengxd1/article/details/105610186)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [pip 安装包时报错 /usr/bin/pip: No such file or directory](https://blog.csdn.net/bcfdsagbfcisbg/article/details/81099649)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [pip 升级之后提示 bash: /usr/bin/pip3: No such file or directory](https://blog.csdn.net/wohu1104/article/details/120907146)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文