anaconda3下载https://www.anaconda.com/
环境配置export PATH=/home/du/anaconda3/bin:$PATH
jupyter 支持局域网访问使用
使用ipython生成key秘钥
from notebook.auth import passwd
passwd()
创建jupyter_node文件夹
进入jupyter node文件夹使用jupyter notebook
进入/home/user/.jupyter下创建修改jupyter_notebook_config.py
c.NotebookApp.ip=''
c.NotebookApp.password = u'argon2:$argon2id$v=19$m=10240,t=10,p=8$G1IUJFyqXtMB+WcalE5mBQ$lWXDvAeVmisqXqupoeH7lg'
c.NotebookApp.open_browser = False
c.NotebookApp.port =8889
再重新执行jupyter notebook即可在局域网下(可访问该设备的情况下)使用ip在网站上直接访问jupyter。
安装TensorFlow三种方式
- 使用pip install tensorflow
- 使用conda install tensorflow
- 在anaconda3的界面下anaconda-navigator界面下选择tensorflow和tensorflow-base进行apply下载。
在新的env中如果安装了tensorflow后如果要在对应环境中使用jupyter或者ipython则
必须在当前环境下重新安装jupyter或ipython
$ source activate pytorch # 启动pytorch环境
$ source activate tensorflow # 启动tensorflow环境
$ source deactivate # 退出环境