下载anaconda
命令行执行
对应的版本为python 3.6
wget https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh
安装TensorFlow
直接pip intsall 会超时的问题 ,更换为国内的下载源,-i 来指定源
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
pip install tensorflow -i https://pypi.doubanio.com/simple/
安装其他包同样
配置jupyter notebook远程
原文:https://blog.csdn.net/tuzixini/article/details/79105482
0.登录你的远程服务器 (我用的是mobaxterm)
1.生成配置文件
jupyter notebook --generate-config
2.生成密码
使用ipython
$ipython
In [1]: from notebook.auth import passwd
In [2]: passwd()
Enter password:
Verify password:
Out[2]: 'sha1:cd723d3e4b0a:e5ca450bbedb63511c78989ea16b8d26941227fb'
3.修改配置文件
vim ~/.jupyter/jupyter_notebook_config.py
c.NotebookApp.ip='*' #意思是任意IP都可以访问
c.NotebookApp.password = u'sha1:cd723d3e4b0a:e5ca450bbedb63511c78989ea16b8d26941227fb' #刚才那个生成的密文
c.NotebookApp.open_browser = False #意思是默认不打开浏览器
c.NotebookApp.port =8888 #随便指定一个你想要的端口,后面可以从这个端口使用
4.启动jupyter
在你想要启动jupyter的目录使用如下命令
jupyter notebook
即可启动jupyter notebook
或者你可以使用如下命令 在后台启用jupyter notebook,并且推出当前ssh连接也不会中断程序.
nohup jupyter notebook &
5.远程访问
随便的电脑上打开浏览器访问IP:端口就可以远程访问服务器上的jupyter.
这个端口就是之前第三步里面你在配置文件中设置的端口.
比如说我这里是8888
假如我的服务器ip是127.0.0.1
那么我就可以访问
127.0.0.1:8888