美文网首页
如何在server上安装Miniconda 和 Jupyter呢

如何在server上安装Miniconda 和 Jupyter呢

作者: Lanlan_78d1 | 来源:发表于2020-05-07 17:30 被阅读0次

    Server的环境是在Linux的基础上

    1. How to install Miniconda?

    1.1 Finding source package for Miniconda

    Link

    image.png
    1.2 Find link for Miniconda Linux 64-bit in chrome download page
    image.png
    https://xxxxxxxxxxx.sh
    1.3 Linux command
    # 获取安装包
    wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh](https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
    # 执行安装包
    bash Miniconda3-latest-Linux-x86_64.sh
    #删除安装包
    rm Miniconda3-latest-Linux-x86_64.sh
    
    1.4 Check python path in xxxxx/miniconda3/bin/python
    which python
    

    If python default path not in xxxxx/miniconda3/bin/python
    Using following step 1.5

    1.5 Change python default path

    If python default is in xxxxx/miniconda3/bin/python, please skip this step

    • Finding Miniconda bin global path

    进入到bin这个文件夹下面,用pwd去获取目录


    image.png
    • 进入 bash(zsh) setting document
    # 先回到home下面
    cd
    # If using bash
    vim .bashrc
    # If using zsh
    vim .zshrc
    
    • 在.bashrc(.zshrc)中改变default路径顺序
      在.bashrc或者.zshrc档案中改变或者加入export PATH.....
      在xxxxxxx/miniconda3/bin中放入pwd获取的路径
    #write this  line in .bashrc or .zshrc document
    export PATH="xxxxxxx/miniconda3/bin:$PATH"
    
    • 再check一次python default path变了没有
    which python
    

    2. How to install Jupyter?

    2.1 Install
    pip install jupyter
    
    2.2 Setting jupyter in server
    • Generate a file jupyter_notebook_config.py
    jupyter notebook --generate-config
    
    2.3 Jupyter Password setup
    jupyter notebook password
    
    2.4 Jupyter Port and IP setup

    进入jupyter_notebook_config.py

    #setting IP
    c.NotebookApp.ip = '0.0.0.0'
    #setting Port
    c.NotebookApp.port = xxxx
    
    2.5 Enter ur ip:port

    140.xxx.xxx.xxx:xxxx

    相关文章

      网友评论

          本文标题:如何在server上安装Miniconda 和 Jupyter呢

          本文链接:https://www.haomeiwen.com/subject/engdoftx.html