zoukankan      html  css  js  c++  java
  • 【Python学习】miniconda安装多个Python版本

    以在远程主机上安装Python3.6环境为例

    下载miniconda:

    下载链接

    传送到远程主机:

    $ scp -r X zhaowanru@主机ip:~/Y # X是本地文件夹,Y是远程主机上的文件夹
    $ Password: (输入密码)
    

    安装miniconda:

    $ sh Miniconda3-latest-Linux-x86_64.sh
    

    一路ENTER或者yes

    激活conda:

    Thank you for installing Miniconda3!
    $ conda
    conda: command not found
    $ source /home/SENSETIME/zhaowanru/miniconda3/bin/activate # 该路径在安装时可找到
    (base) $ conda create -n env36 python=3.6 # env36为要创建的环境的名字
    Collecting package metadata (current_repodata.json): failed
    
    CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/linux-64/current_repodata.json>
    Elapsed: -
    
    An HTTP error occurred when trying to retrieve this URL.
    HTTP errors are often intermittent, and a simple retry will get you on your way.
    
    If your current network has https://www.anaconda.com blocked, please file
    a support request with your network engineering team.
    
    'https://repo.anaconda.com/pkgs/main/linux-64'
    
    # 打开该链接,重新输入命令即可自动连接:
    (base) $ conda create -n env36 python=3.6
    Collecting package metadata (current_repodata.json): done
    Solving environment: done
    # 会自动下载本地没有的Python版本
    # To activate this environment, use
    #
    #     $ conda activate env36
    #
    # To deactivate an active environment, use
    #
    #     $ conda deactivate
    
    

    进入Python3.6环境:

    (base) $ conda activate env36
    (env36) $ python
    Python 3.6.10 |Anaconda, Inc.| (default, May  8 2020, 02:54:21)
    [GCC 7.3.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>>
    

    大功告成!

  • 相关阅读:
    GitLab 介绍
    git 标签
    git 分支
    git 仓库 撤销提交 git reset and 查看本地历史操作 git reflog
    git 仓库 回退功能 git checkout
    python 并发编程 多进程 练习题
    git 命令 查看历史提交 git log
    git 命令 git diff 查看 Git 区域文件的具体改动
    POJ 2608
    POJ 2610
  • 原文地址:https://www.cnblogs.com/Ryan0v0/p/13253065.html
Copyright © 2011-2022 走看看