Linux中把Anaconda设置为默认python环境的方法

版权声明:博主GitHub网址https://github.com/29DCH,欢迎大家前来交流探讨和fork。 https://blog.csdn.net/CowBoySoBusy/article/details/82459319

1.如果用.sh文件安装的话,则在安装过程中选择yes默认将anaconda加入环境变量

2.手工添加环境变量:

在终端输入sudo gedit /etc/profile,打开profile文件。

在文件末尾添加一行:export PATH=/home/zq/anaconda3/bin:$PATH,其中,将“/home/zq/anaconda3/bin”替换为你实际的安装路径即可,ctrl+s保存退出。 

猜你喜欢

转载自blog.csdn.net/CowBoySoBusy/article/details/82459319