1 设置anaconda权限
sudo chmod -R o+w /home/user/anaconda3
2 安装需要的版本
conda install python=3.6
只是替换几个文件,很快。
提示:
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Traceback (most recent call last):
File "/home/lzp/anaconda3/bin/conda", line 7, in <module>
from conda.cli import main
ModuleNotFoundError: No module named 'conda'
有个错误提示,但是没有关系。已经切换过来了。
xxx:~$ python
Python 3.6.2 |Continuum Analytics, Inc.| (default, Jul 20 2017, 13:51:32)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
如果还是发现不对,建议重装python3.6版本的an