linux 安装anaconda 并配置jupyter notebook远程执行

  1. 官网下载anaconda Linux版本,xftp上传到云服务器
    在这里插入图片描述
  2. 进入到文件目录
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
  1. 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启动后默认的根目录

  1. 使用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的
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值