anaconda激活环境后发现仍然使用的是默认环境
激活环境 :
dinghui@dinghui-desktop:~$ source activate python35-tf1.10
查看python版本:
(python35-tf1.10) dinghui@dinghui-desktop:~$ conda list | grep python
得到结果:
# packages in environment at /home/dinghui/anaconda3/envs/python35-tf1.10:
ipython 6.5.0 py35_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
ipython_genutils 0.2.0 py35hc9e07d0_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
python 3.5.6 hc3d631a_0 defaults
python-dateutil 2.7.3 py35_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
可是运行python:
(python35-tf1.10) dinghui@dinghui-desktop:~$ python
之后显示:
Python 2.7.12 (default, Oct 8 2019, 14:14:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>