Anaconda 安装yaml

因为这次安装表现怪异,所以记录一下,备忘。

不成功的安装conda install yaml

建立一个环境,随便取名env_example,命令如下,

(env_example) C:\Users\space>conda install yaml
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: d:\Anaconda3\envs\mx36

  added / updated specs:
    - yaml


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    openssl-1.1.1g             |       he774522_0         4.8 MB  defaults
    ------------------------------------------------------------
                                           Total:         4.8 MB

The following NEW packages will be INSTALLED:

  yaml               pkgs/main/win-64::yaml-0.1.7-hc54c509_2

The following packages will be UPDATED:

  ca-certificates    anaconda/pkgs/main::ca-certificates-2~ --> pkgs/main::ca-certificates-2020.1.1-0
  certifi            anaconda/pkgs/main::certifi-2019.9.11~ --> pkgs/main::certifi-2020.4.5.1-py36_0
  openssl            anaconda/pkgs/main::openssl-1.1.1d-he~ --> pkgs/main::openssl-1.1.1g-he774522_0

Proceed ([y]/n)?

Downloading and Extracting Packages
openssl-1.1.1g       | 4.8 MB    | ######################3                                                      |  29%

('Connection broken: OSError("(10054, \'WSAECONNRESET\')")', OSError("(10054, 'WSAECONNRESET')"))

问题:

一连几次,都无法安装成功,貌似每次都卡在openssl-1.1.1g,因为我已经配置了使用tuna镜像,所以也不清楚是不是镜像上有没有这个文件。

单独安装openssl

既然openssl无法安装成功,单独安装试一下,(参考: https://anaconda.org/anaconda/openssl)
(env_example) C:\Users\space>conda install -c anaconda openssl
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: d:\Anaconda3\envs\mx36

  added / updated specs:
    - openssl


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    ca-certificates-2020.1.1   |                0         165 KB  anaconda
    certifi-2020.4.5.1         |           py36_0         159 KB  anaconda
    openssl-1.1.1g             |       he774522_0         5.8 MB  anaconda
    ------------------------------------------------------------
                                           Total:         6.1 MB

The following packages will be UPDATED:

  ca-certificates    anaconda/pkgs/main::ca-certificates-2~ --> anaconda::ca-certificates-2020.1.1-0
  certifi            anaconda/pkgs/main::certifi-2019.9.11~ --> anaconda::certifi-2020.4.5.1-py36_0
  openssl            anaconda/pkgs/main::openssl-1.1.1d-he~ --> anaconda::openssl-1.1.1g-he774522_0


Proceed ([y]/n)? y


Downloading and Extracting Packages
openssl-1.1.1g       | 5.8 MB    | ############################################################################ | 100%
certifi-2020.4.5.1   | 159 KB    | ############################################################################ | 100%
ca-certificates-2020 | 165 KB    | ############################################################################ | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

OK,一切顺利安装完成,

安装 yaml

再考虑安装 yaml,命令如下(参考:https://anaconda.org/anaconda/yaml

(env_example) C:\Users\space>conda install -c anaconda yaml
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: d:\Anaconda3\envs\mx36

  added / updated specs:
    - yaml


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    yaml-0.1.7                 |   vc14h4cb57cf_1         103 KB  anaconda
    ------------------------------------------------------------
                                           Total:         103 KB

The following NEW packages will be INSTALLED:

  yaml               anaconda/win-64::yaml-0.1.7-vc14h4cb57cf_1


Proceed ([y]/n)? y


Downloading and Extracting Packages
yaml-0.1.7           | 103 KB    | ############################################################################ | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
OK,成功安装。

posted @ 2020-06-13 22:56  SpaceVision  阅读(849)  评论(0编辑  收藏  举报