当前位置:网站首页>Lunix(阿里云服务器)安装Anaconda并开启jupyter服务本地访问
Lunix(阿里云服务器)安装Anaconda并开启jupyter服务本地访问
2022-08-10 05:39:00 【Scc_hy】
一、下载安装Anaconda
1.1 选择版本下载并安装
下载
官网文件: https://repo.anaconda.com/archive/
版本对应核查: 知乎:Anaconda版本对应的python版本
客户端中下载:wget https://repo.anaconda.com/archive/Anaconda3-5.3.0-Linux-x86_64.sh
安装
# shell 中输入命令
chmod +x Anaconda3-5.3.0-Linux-x86_64.sh
./Anaconda3-5.3.0-Linux-x86_64.sh
1.2 创建环境与安装插件
conda create -n ml python=3.x.x
conda env remove -n 虚拟环境的名称
python -m pip install jupyter
conda install -c conda-forge jupyter_contrib_nbextensionscode
pip install yapf
二、配置jupyter notebook
- 生成配置环境
jupyter notebook --generate-config
- 配置
/home/admin/.jupyter/jupyter_notebook_config.py
文件
可直接将下列配置复制在文件 的开头
c.NotebookApp.ip='0.0.0.0' # 设置IP
c.NotebookApp.password = u'G' # 设置密码
c.NotebookApp.open_browser = False # 不打开浏览器
c.NotebookApp.port = 8888 # 可自行指定一个端口 这部分需要运维,或者是在阿里云服务上打开一个端口
c.NotebookApp.notebook_dir = "/jupyter_work" # 设置工作目录
2.1 设置密码
- 方式1:进入python设置, 然后复制到
/home/admin/.jupyter/jupyter_notebook_config.py
文件中
# 进入python 输入
from notebook.auth import passwd
passwd()
- 方式2:方式1不行的时候,就用命令行输入
jupyter notebook password
2.2 在阿里云服务上打开一个端口
进入阿里云控制台,找到【安全】-- 【防火墙】,点击添加规则,配置我们在配置文件中定义好的端口。
2.3 开启jupyter notebook
nohup jupyter notebook --port=8888 --ip=0.0.0.0 &
边栏推荐
猜你喜欢
如何在AdsPower中设置YiLu代理?
Unity plug-in DOTween User Guide 2 (Brief explanation of Bezier curves)
Ingress Controller performance test(1)
8个问题轻松掌握Unity前向渲染
ACPI知识(高级配置和电源接口)
QEMU guest与host通过网络通信——bridge/hostfwd/guestfwd
Talking about 3 common shadow rendering techniques in games (2): shadow cone
OSPF的dr和bdr
Myunity框架笔记2
NetKeeper(创翼)开WIFI方法——2018.5
随机推荐
动态规划、背包问题 6/25 110-115
Teach you to change the kernel source code--sysfs virtual file system 2
DRM Memory Management
酸回收工艺讲解
优化Mysql运行OrderBy性能
二叉树 6/15 76-80
全网可达并设备加密
超纯水抛光树脂
二叉树 6/20 86-90
碳酸锂、碳酸氢锂溶液除钙镁离子工艺原理
R language cluster analysis - code analysis
QEMU guest与host通过网络通信——bridge/hostfwd/guestfwd
MySQL 免安装版/解压版的安装与配置(Win & Unix & Linux)
手把手教你改内核源码--sysfs虚拟文件系统2
分享一个专业TA的《Shader参考大全》
npm搭建私服,上传下载包
Analysis of minix_super_block.s_nzones of mkfs.minix.c
ArgumentException: GetComponent requires that the requested component ‘GameObject‘ derives from Mono
Kernel performance analysis summary
markdown类图学习