every blog every motto: You can do more than you think.
https://blog.csdn.net/weixin_39190382?type=blog
0. 前言
- 在虚拟环境中使用的python和pip不是虚拟环境的
- pip安装不到当前的虚拟环境中
- …等
解决方法
1. 解决办法
打开配置文件
vim ~/.bashrc
把如下代码注释即可
export PATH="/home/being/miniconda3/bin:$PATH"
最后运行如下代码,使修改生效
source ~/.bashrc
2. 补充
如果还是不行,可以如下图把$PATH
放到前面
参考
[1] https://blog.csdn.net/weixin_38705903/article/details/101827305?spm=1001.2101.3001.6650.3&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-3-101827305-blog-119004109.235%5Ev38%5Epc_relevant_sort&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-3-101827305-blog-119004109.235%5Ev38%5Epc_relevant_sort&utm_relevant_index=4
[2] https://blog.csdn.net/weixin_41712499/article/details/105430471?spm=1001.2101.3001.6650.2&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-2-105430471-blog-122732095.235%5Ev38%5Epc_relevant_sort&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-2-105430471-blog-122732095.235%5Ev38%5Epc_relevant_sort&utm_relevant_index=5