6.若anaconda没有添加环境变量
(1)修改~/.bashrc(gedit ~/.bashrc)
(2)添加export PATH=/home/lishanliao/anaconda3/bin:$PATH
(3)source ~/.bashrc
(4)重启终端
然后终端输入which python得到显示:
说明启动的是anaconda的python。
关于sudo gedit ~.bashrc or sudo gedit /etc/profile 等环境变量添加问题:https://blog.csdn.net/jiachen0212/article/details/79569076
7.在虚拟环境中安装TensorFlow
8.安装成功后尝试在ipython中导入tensorflow模块,可能会报错No module named ‘tensorflow’