Miniconda无法在其中安装Python 3.7(Macos Monterey M1芯片)创建环境

发布于 2025-02-03 06:41:31 字数 282 浏览 4 评论 0原文

我正在尝试在Mincoda中创建一个与Python 3.7在我的MacBook Air(Macos Monterey Apple M1芯片)中创建的

环境

如下

, 从当前的渠道:

  • Python = 3.7

我尝试过Conda-Forge,并且有同样的错误

,我知道这是因为M1芯片,我可能必须创建OSX-64环境,但是有什么简单的方法可以做到吗?

我的需要是在其中创建一个带有python 3.7的Miniconda环境。

I am trying to create an environment in miniconda with python 3.7 in my macbook air(macOS Monterey Apple M1 chip) as below,

conda create --new newenv python=3.7

However I get the below error-

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

  • python=3.7

I have tried conda-forge and got the same error

I understand that this is because of the M1 chip and I have to maybe create osx-64 environment, but is there any easy way to do it?

My need is to create a miniconda environment with python 3.7 in it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

粉红×色少女 2025-02-10 06:41:31

当我使用MBP(14英寸,M1 Pro芯片)创建Anaconda环境(Python 3.7)时,我遇到了同样的问题。

但是,当我更改为Python 3.8并使用conda-forge频道(添加-c参数为conda-forge)时,它起作用了!

命令如下:
conda create -n env -c conda -forge python = 3.8

我认为也许python 3.7不再受m芯片的支持。

I got the same problem when I used my MBP (14 inch, M1 Pro chip) to create an Anaconda environment (python 3.7).

However when I changed to python 3.8 and used the conda-forge channel (added the -c argument to conda-forge), it worked!

The command is as follows:
conda create -n env -c conda-forge python=3.8

I think maybe python 3.7 is no longer supported by m chips.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文