anaconda3

下载并安装

anaconda仓库:https://repo.anaconda.com/archive/

wget  https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh

bash Anaconda3-2019.03-Linux-x86_64.sh


#配置环境变量conda路径加入到 .bashrc 中
vim ~/.bashrc
export PATH=~/anaconda3/bin:$PATH   # 加上这一行,wq保存退出
source ~/.bashrc  # 重新加载该文件  

新建一个环境并安装JUPYTER

conda create -n jupyter_env python==3.7  # 创建环境
source activate jupyter_env    # **进入环境
conda install jupyter  # 安装jupyter

配置jupyter

step1:配置文件位置~/.jupyter/jupyter_notebook_config.json
jupyter notebook --generate-config		//生成配置文件

step2:
jupyter notebook password  # 自己造一个密码输入一确认一次

step3:
vim ~/.jupyter/jupyter_notebook_config.json


===============================================
c.NotebookApp.ip='*'                                  # 就是设置所有ip皆可访问  
c.NotebookApp.password = u'sha1:03...       # 刚才复制的那个密文'  
c.NotebookApp.open_browser = False       # 禁止自动打开浏览器  
c.NotebookApp.port =1234                         #随便指定一个端口 
===============================================

后台运行

jupyter notebook --allow-root > jupyter.log 2>&1 &
或者
nohup jupyter notebook --allow-root > jupyter.log 2>&1 &
#nohup表示no hang up, 就是不挂起, 这个命令执行后即使终端退出, Jupyter也不会停止运行.

其他类容下载

#话决策树的包
conda install python-graphviz

conda install numpy
conda install pandas
conda install scipy
conda install matplotlib
conda install scikit-learn

conda install scikit-learn=0.24.1 scikit-image=0.17.2 numpy=1.20.0 pandas matplotlib scikit-learn scipy=1.6.0

conda install scikit-learn scikit-image numpy pandas matplotlib scikit-learn scipy

conda install scikit-learn matplotlib scipy pandas numpy

pip install scikit-learn scikit-image numpy pandas matplotlib scikit-learn scipy opencv-python


指导

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值