- 官网下载anaconda Linux版本,xftp上传到云服务器
- 进入到文件目录
bash Anaconda3-2020.07-Linux-x86_64.sh
按提示按回车键或者输入“yes”
安装完毕
重新打开shell
输入“conda -v”进行验证
3. Conda使用
4. 创建环境
conda create -n 环境名 python=3.7
5. 进入环境
conda activate 环境名
6. (进入环境后)激活环境
conda init bash
7. 安装包
conda install 包名称(conda install tensorflow-gpu=1.14)
8. 查看已有环境
conda info -e
- jupyter notebook安装
(base) [root@666 work]# conda install jupyter notebook
(base) [root@666 work]# jupyter notebook --generate-config
Writing default config to: /root/.jupyter/jupyter_notebook_config.py
(base) [root@666 work]# vi /root/.jupyter/jupyter_notebook_config.py
vi 可以使用“:set nu”显示行号
In [1]: from notebook.auth import passwd
In [2]: passwd()
Enter password:
Verify password:
Out[2]: 'argon2:$argon2xxxxxxxxxxxxxxxxxxxxxxxxx'
1 c.NotebookApp.ip = ‘xx.xxx.xx.xxx’ #即对外提供访问的ip
2 c.NotebookApp.port = 9527 #即对外提供访问的端口
3 c.NotebookApp.open_browser = False #False即启动不打开浏览器
4 c.NotebookApp.password = ‘argon2:$argon2xxxxxxxxxxxxxxxxxxxxxxxxx’ #这个就是上面生成的秘钥
5 c.NotebookApp.notebook_dir = u’/search/autotest/jupyter_dir’ #即设置jupyter启动后默认的根目录
- 使用screen保持会话
yum install screen
screen -S 【name】新建一个
ctrl+a+d退出你新建这个
screen -ls查看你所有screen
screen -r 【id or name】进去那个screen
kill -9 id
screen -wipe 清理哪些dead的