默认python3.7版本的anaconda ——>python3.6

本文介绍了如何在已安装Python3.7的Anaconda环境中创建Python3.6的虚拟环境,以及尝试回退Python版本的过程。通过conda命令创建名为py36的环境,并详细列出了安装过程中涉及的包和下载进度。虽然尝试版本回退未成功,但激活和查看虚拟环境的方法也一并给出。
摘要由CSDN通过智能技术生成


从Anaconda官网上下载的Anaconda安装包,已经对应的是Python 3.7版本,
如果想要安装Python 3.6版,那么有如下几种方法:

方法1:创建虚拟环境python3.6

anaconda 虚拟环境的python3.7 切换为python3.6
Anaconda安装Python 3.6版本

  1. conda create --name py36 python=3.6
conda create --name py36 python=3.6
Solving environment: done

## Package Plan ##

  environment location: D:\CodingSoftware\Anaconda3\envs\py36

  added / updated specs:
    - python=3.6


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    python-3.6.2               |                0        31.5 MB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
    wincertstore-0.2           |           py36_0          14 KB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
    vc-14                      |                0          703 B  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
    pip-9.0.1                  |           py36_1         1.7 MB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
    certifi-2016.2.28          |           py36_0         214 KB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
    wheel-0.29.0               |           py36_0         129 KB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
    setuptools-36.4.0          |           py36_1         534 KB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
    vs2015_runtime-14.0.25420  |                0         2.0 MB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
    ------------------------------------------------------------
                                           Total:        36.0 MB

The following NEW packages will be INSTALLED:

    certifi:        2016.2.28-py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
    pip:            9.0.1-py36_1     https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
    python:         3.6.2-0          https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
    setuptools:     36.4.0-py36_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
    vc:             14-0             https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
    vs2015_runtime: 14.0.25420-0     https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
    wheel:          0.29.0-py36_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
    wincertstore:   0.2-py36_0       https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free

Proceed ([y]/n)? y


Downloading and Extracting Packages
python-3.6.2         | 31.5 MB   | ############################################################################ | 100%
wincertstore-0.2     | 14 KB     | ############################################################################ | 100%
vc-14                | 703 B     | ############################################################################ | 100%
pip-9.0.1            | 1.7 MB    | ############################################################################ | 100%
certifi-2016.2.28    | 214 KB    | ############################################################################ | 100%
wheel-0.29.0         | 129 KB    | ############################################################################ | 100%
setuptools-36.4.0    | 534 KB    | ############################################################################ | 100%
vs2015_runtime-14.0. | 2.0 MB    | ############################################################################ | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use:
# > activate py36
#
# To deactivate an active environment, use:
# > deactivate
#
# * for power-users using bash, you must source
#

  1. 激活环境:activate py36
  2. 查询所有的虚拟环境
    在这里插入图片描述

方法2:版本回退

Anaconda中将python 3.7版本退回python 3.6版本
我已经换成清华源,但是一直加载不出来。放弃了。

  • 1
    点赞
  • 27
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值