gpt4 book ai didi

python - 为什么 conda 无法创建安装了 python=3.4 的环境

转载 作者:行者123 更新时间:2023-12-03 14:34:37 29 4
gpt4 key购买 nike

我安装了 miniconda 3,想用 Python 3.4 创建 conda 环境。我使用了命令:conda create -n myenv python=3.4并得到错误:

PackagesNotFoundError: The following packages are not available from current channels:
- python=3.4

我尝试将版本更改为 3.7,键入 conda create -n myenv python=3.7版本 3.7 没有错误。所以这个问题似乎与旧版本的python有关。

这是带有错误消息的完整输出:
Collecting package metadata (current_repodata.json): done
Solving environment: failed
Collecting package metadata (repodata.json): done
Solving environment: failed

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

- python=3.4

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

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.

最佳答案

无法安装的原因python 3.4包是它在您尝试安装的 anaconda 的默认 channel 中不可用。

但是,我刚刚检查了它在 conda-forge 中是否可用 channel 。所以,它可以安装如下:
conda create -n myenv python=3.4 -c conda-forge

关于python - 为什么 conda 无法创建安装了 python=3.4 的环境,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56850972/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com