Conda Python版本

huangapple go评论56阅读模式
英文:

Conda Python version

问题

我尝试使用Python版本3.8.2创建一个新的conda环境。当我运行conda create -n envName python=3.8.2时,我收到以下错误消息:

PackagesNotFoundError: 以下包在当前渠道中不可用:

  - python=3.8.2

当我尝试安装3.8.6时,环境可以正常设置,但某种原因3.8.2无法工作。如何安装3.8.2?

英文:

I'm trying to create a new conda env using python version 3.8.2

When I run conda create -n envName python=3.8.2 I get the following error message:

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

  - python=3.8.2

When I try to install 3.8.6, the env is set up with no problem - but for some reason 3.8.2 doesn't work. How can I install 3.8.2 ?

答案1

得分: 1

如果有人在ARM架构的Mac机器上遇到此问题,目前发现M1芯片与conda的交互存在问题。解决方法是使用:

CONDA_SUBDIR=osx-64 conda create -n envName python=3.8.2
接着执行
conda config --env --set subdir osx-64

然后,您可以像平常一样使用conda。

英文:

If anyone's having this issue with ARM-based Mac machines, turns out currently there's a problem with the M1 chip and conda interaction. The solution is to use:

CONDA_SUBDIR=osx-64 conda create -n envName python=3.8.2
followed by
conda config --env --set subdir osx-64

then on, you can use conda as usual.

huangapple
  • 本文由 发表于 2023年5月11日 09:59:28
  • 转载请务必保留本文链接:https://go.coder-hub.com/76223652.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定