康达环境需要pipwin

时间:2020-08-10 17:51:37

标签: python anaconda conda

我正在尝试使用conda创建一个新环境,但是即使已经安装了pipwin,也需要安装pipwin。我不确定是否在不需要创建环境时为什么需要pipwin。

(base) C:\Users\Owner>conda create -n testenv
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - pipwin

Current channels:

  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/noarch
  - https://conda.anaconda.org/conda-forge/win-64
  - https://conda.anaconda.org/conda-forge/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

我尝试了此解决方案(PackagesNotFoundError: The following packages are not available from current channels:),但是当我运行conda install pipwin时却得到了非常相似的输出:

(base) C:\Users\Owner>conda install pipwin
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - pipwin

Current channels:

  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/noarch
  - https://conda.anaconda.org/conda-forge/win-64
  - https://conda.anaconda.org/conda-forge/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

我尝试过使用pip和conda卸载/安装pipwin的任何组合,但似乎没有任何效果。我还卸载了anaconda提示符,然后再次安装它并重新启动计算机。有什么建议/提示吗?

1 个答案:

答案 0 :(得分:0)

我最近在创建环境时遇到了类似的问题。我使用了与您相同的代码,即“ conda create -n testenv”。而是尝试使用“ conda create --name testenv”。它解决了我的问题,因此也可能对您有帮助。