Linux pip command not found【已安装anaconda】
生活随笔
收集整理的這篇文章主要介紹了
Linux pip command not found【已安装anaconda】
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
找了各種方法,最后發現直接在bashrc中自定義一個pip命令,指定到對應的anaconda中的pip3版本就好了。
如果你安裝了anaconda,并且一直使用的是anaconda下的python,希望使用anaconda自帶的pip,linux終端中又突然出現“pip command not found”報錯,可以嘗試用以下方法修改:
在linux終端中輸入
user$ vim ~/.bashrc編輯bashrc文件,在末尾加上對pip命令的定義和指向
[參考]https://blog.csdn.net/u014734886/article/details/78790288
alias pip = '/home/user/anaconda3/bin/pip3'保存bashrc文件,并激活
user$ source ~/.bashrc總結
以上是生活随笔為你收集整理的Linux pip command not found【已安装anaconda】的全部內容,希望文章能夠幫你解決所遇到的問題。

- 上一篇: 【转载】笛卡尔转极坐标
- 下一篇: Linux创建jupyter noteb