【问题标题】:Set up of virtual environment in anaconda failing在 anaconda 中设置虚拟环境失败
【发布时间】:2018-07-23 12:13:38
【问题描述】:

我正在尝试在 anaconda python(版本 3.6.1 自定义 64 位,conda 版本 4.5.1)中创建一个虚拟环境,但由于某种原因它失败了?我用来创建环境的代码如下所示。

henry@HB:~$ conda create -n env_zipline python=3.6  

然后(经过短暂的延迟)产生了以下错误:

Solving environment: failed

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

`$ /home/henry/anaconda3/bin/conda create -n env_zipline python=3.6`

  environment variables:
                 CIO_TEST=<not set>
          COMPIZ_BIN_PATH=/usr/bin/
               CONDA_ROOT=/home/henry/anaconda3
            DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
           MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
                     PATH=/home/henry/Google App Credentials/google-cloud-sdk/bin:/home/henry/.sdk
                          man/candidates/java/current/bin:/home/henry/anaconda3/bin:~/anaconda/bi
                          n:~/anaconda/bin:~/anaconda/bin:/home/henry/bin:/home/henry/.local/bin:/
                          usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
                          :/usr/local/games:/snap/bin
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>
            XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
         XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0

     active environment : None
       user config file : /home/henry/.condarc
 populated config files : /home/henry/.condarc
          conda version : 4.5.1
    conda-build version : not installed
         python version : 3.6.1.final.0
       base environment : /home/henry/anaconda3  (writable)
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://conda.anaconda.org/conda-forg/linux-64
                          https://conda.anaconda.org/conda-forg/noarch
                          https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/linux-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/linux-64
                          https://repo.anaconda.com/pkgs/pro/noarch
          package cache : /home/henry/anaconda3/pkgs
                          /home/henry/.conda/pkgs
       envs directories : /home/henry/anaconda3/envs
                          /home/henry/.conda/envs
               platform : linux-64
             user-agent : conda/4.5.1 requests/2.14.2 CPython/3.6.1 Linux/4.15.0-24-generic ubuntu/16.04 glibc/2.23
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False


V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V

CondaHTTPError: HTTP 404 NOT FOUND for url <https://conda.anaconda.org/conda-forg/noarch/repodata.json>
Elapsed: 00:00.120726
CF-RAY: 43ede6e4ff8469ef-LHR

The remote server could not find the noarch directory for the
requested channel with url: https://conda.anaconda.org/conda-forg

As of conda 4.3, a valid channel must contain a `noarch/repodata.json` and
associated `noarch/repodata.json.bz2` file, even if `noarch/repodata.json` is
empty. please request that the channel administrator create
`noarch/repodata.json` and associated `noarch/repodata.json.bz2` files.
$ mkdir noarch
$ echo '{}' > noarch/repodata.json
$ bzip2 -k noarch/repodata.json

You will need to adjust your conda configuration to proceed.
Use `conda config --show channels` to view your configuration's current state.
Further configuration help can be found at <https://conda.io/docs/config.html>.

A reportable application error has occurred. Conda has prepared the above report.
If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers?
[y/N]:

当我做节目频道时,我得到:

henry@HB:~$ conda config --show channels
channels:
  - conda-forge
  - conda-forg
  - defaults

谁能解释一下

【问题讨论】:

  • conda-forgchannels 部分的错字吗?

标签: python anaconda virtualenv


【解决方案1】:

我认为这可能是一个错误。发现打开的错误报告:https://github.com/conda/conda/issues/7568

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-05-14
    • 1970-01-01
    • 2021-12-11
    • 2021-11-26
    • 2013-08-28
    • 1970-01-01
    • 1970-01-01
    • 2016-03-29
    相关资源
    最近更新 更多