![b3181559b3a0934450c6e6c10348e74c.png](https://img-blog.csdnimg.cn/img_convert/b3181559b3a0934450c6e6c10348e74c.png)
anaconda安装
下载地址: 清华镜像地址
由于tensorflow2.0不支持python3.7版本,因此下载python3.6版本,anaconda和python版本对应关系如下图:
![b31c9e537f21f9bcf7e7512370532426.png](https://img-blog.csdnimg.cn/img_convert/b31c9e537f21f9bcf7e7512370532426.png)
下载安装好对应版本anaconda后,通过命令安装tensorflow2.0(等正式版本上线后需要替换):
tensorflow
如果需要,还可以安装pandas等包:
pip install pandas etc...
jupyter notebook安装
pip install jupyter notebook
生成jupyter notebook配置文件:
jupyter notebook --generate-config
生成密码:
jupyter notebook password
拷贝~/jupyter/jupyter_notebook_config.json中的密码到jupyter_notebook_config.py:
c
启动jupyter notebook:
# 如需后台运行,则加nohup
python虚拟环境
创建一个新的虚拟环境:
python
查看已有的虚拟环境:
conda env list
切换虚拟环境(tensorflow为你自己创建时的名,在此为tensorflow):
source activate tensorflow
在此打开jupyter notebook
![787d12b18ea65a8081806379b57d07e1.png](https://img-blog.csdnimg.cn/img_convert/787d12b18ea65a8081806379b57d07e1.png)
让我们看看有没有成功:
![162107d94d58b9884fe9b0b4d8ad0f33.png](https://img-blog.csdnimg.cn/img_convert/162107d94d58b9884fe9b0b4d8ad0f33.png)
so easy?isn't it?
关注公众号:【算法与推荐系统】
![f7db2193168a24bf89a578d91f5a035a.png](https://img-blog.csdnimg.cn/img_convert/f7db2193168a24bf89a578d91f5a035a.png)