当前位置:网站首页>Anaconda安装并配置jupyter notebook远程
Anaconda安装并配置jupyter notebook远程
2022-06-29 18:04:00 【Albert__Einstein】
环境:centos7.5
python版本:python 3.7.3
Part1. 下载Anaconda
直接在官网下载比较慢,建议使用清华镜像:Tsinghua Open Source Mirror
选择自己需要的版本,下载
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2019.03-Linux-x86_64.sh如果没有wget,则先安装wget
yum -y install wgetPart2. 安装Anaconda
在下载目录中执行该文件
bash Anaconda3-2019.03-Linux-x86_64.sh接下来会出现一堆的License许可声明,一路回车向下,出现如下文字,输入yes
然后要选择安装目录,如果无需更改直接回车Enter,如需更改要输入绝对路径:
Anaconda3 will now be installed into this location:
/home/work/anaconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
问是否需要进行conda的初始化,建议输入no。若选择yes,是在/root/.bashrc目录中自动添加环境变量,会使得开机自动启动base环境。
Do you wish the installer to initialize Anaconda3
by running conda init? [yes|no]
[no] >>> no
配置环境变量
vi /etc/profile#在文末添加
PATH=$PATH:/home/work/anaconda3/bin
export PATH
然后立即生效
source /etc/profileconda activate # 进入conda环境出现(base)则说明安装成功
conda deactivate # 退出conda环境
Part3. Jupyter Notebook远程服务
1、生成Jupyter Notebook配置文件
$ jupyter notebook --generate-config
2、设置Jupyter Notebook密码
设置密码用于设置服务器配置,以及登录Jupyter。打开Python终端,输入以下:
In [1]: from IPython.lib import passwd
In [2]: passwd()
3、配置Jupyter Notebook配置文件(第一步生成)
$ vim ~/.jupyter/jupyter_notebook_config.py
修改如下信息
c.NotebookApp.ip = '*' #所有绑定服务器的IP都能访问,若想只在特定ip访问,输入ip地址即可
c.NotebookApp.port = 18888 #将端口设置为自己喜欢的吧,默认是8888
c.NotebookApp.open_browser = False #我们并不想在服务器上直接打开Jupyter Notebook,所以设置成False
c.NotebookApp.notebook_dir = '/root/jupyter_projects' #这里是设置Jupyter的根目录,若不设置将默认root的根目录,不安全
c.NotebookApp.allow_root = True # 为了安全,Jupyter默认不允许以root权限启动jupyter
4\启动Jupyter 远程服务器
$ jupyter notebook
边栏推荐
- Detailed introduction and Simulation of bitmap
- Kubekey2.2.1 kubernetes1.23.7 offline package production +harbor Department summer and upload image
- Yolov6+tensorrt+onnx: deployment based on win10+tensorrt8+yolov6+onnx
- 3H proficient in opencv (VI) - image stacking
- kubekey2.2.1 kubernetes1.23.7离线包制作+harbor部暑并上传镜像
- Software testing - you may not understand the basic theoretical knowledge
- Let Google search your blog
- jdbc_相關代碼
- Xiaobai yuesai 51 supplement e g f
- Error building SqlSession问题
猜你喜欢

Parental delegation mechanism

Adobe Premiere foundation - sound adjustment (volume correction, noise reduction, telephone tone, pitch shifter, parameter equalizer) (XVIII)

源码安装MAVROS

QQ如何开通在线客服

Kubekey2.2.1 kubernetes1.23.7 offline package production +harbor Department summer and upload image

Yolov6+tensorrt+onnx: deployment based on win10+tensorrt8+yolov6+onnx

idea怎么使用?

Adobe Premiere基础-常用的视频特效(边角定位,马赛克,模糊,锐化,手写工具,效果控件层级顺序)(十六)

The soft youth under the blessing of devcloud makes education "smart" in the cloud

Adobe Premiere基础-不透明度(蒙版)(十一)
随机推荐
Request header field xxxx is not allowed by Access-Control-Allow-Headers in preflight response问题
Precondition end of script headers or end of script output before headers
Adobe Premiere foundation - opacity (matte) (11)
2022.6.29-----leetcode.535
优雅书写Controller(参数验证+统一异常处理)
POJ 1975 (传递闭包)
Automatic software test - read SMS verification code using SMS transponder and selenium
MySQL数据库每日备份并定时清理脚本
3h精通OpenCV(八)-形状检测
PostgreSQL database system table
6.29模拟赛总结
牛客小白月赛52 E 分组求对数和(容斥定理+二分)
Serial port experiment based on stm32f103zet6 library function
Adobe Premiere基础-素材嵌套(制作抖音结尾头像动画)(九)
【TcaplusDB知识库】TcaplusDB单据受理-创建游戏区介绍
Adobe Premiere基础-炫酷文字快闪(十四)
Detailed introduction and Simulation of bitmap
Visio annotation, annotation location
Adobe Premiere foundation - material nesting (animation of Tiktok ending avatar) (IX)
金鱼哥RHCA回忆录:DO447构建高级作业工作流--使用事实缓存提高性能