天津网站设计服务公司,简单免费模板,办公室装修会计分录,微商城网站策划常遇到需要一个小工具#xff0c;比如生成作息时间表#xff0c;今天就搭建一个可在线使用的python运行环境 当然也可以交给ChatGPT完成
1、安装canda
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2019.03-Linux-x86_64.shyum install -y bzi…常遇到需要一个小工具比如生成作息时间表今天就搭建一个可在线使用的python运行环境 当然也可以交给ChatGPT完成
1、安装canda
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2019.03-Linux-x86_64.shyum install -y bzip2bash Anaconda3-2019.03-Linux-x86_64.shDo you accept the license terms? [yes|no]
[no]
Please answer yes or no:yesDo you wish the installer to initialize Anaconda3
by running conda init? [yes|no]
[no] no配置canda vi /etc/profile
PATH$PATH:/root/anaconda3/bin
export PATH激活变量
source /etc/profile2、配置notebook
# 生成配置
jupyter notebook --generate-config --allow-root
jupyter notebook password#配置 jupyter_notebook_config.py
c.NotebookApp.ip*
c.NotebookApp.password usha:ce...刚才复制的那个密文
c.NotebookApp.open_browser False
c.NotebookApp.port 9998 #可自行指定一个端口, 访问时使用该端口
c.ContentsManager.root_dir /root/notebook 3、启动notebook
jupyter notebook --ip127.0.0.1 --port28888 --allow-root