简体   繁体   English

Miniconda 无法创建安装了 Python 3.7 的环境(macOS Monterey M1 芯片)

[英]Miniconda cannot create an environment with Python 3.7 installed in it (macOS Monterey M1 chip)

I am trying to create an environment in miniconda with python 3.7 in my macbook air(macOS Monterey Apple M1 chip) as below,我正在尝试在我的 macbook air(macOS Monterey Apple M1 芯片)中使用 python 3.7 在 miniconda 中创建一个环境,如下所示,

conda create --new newenv python=3.7 conda create --new newenv python=3.7

However I get the below error-但是我收到以下错误-

PackagesNotFoundError: The following packages are not available from current channels: PackagesNotFoundError:当前渠道不提供以下软件包:

  • python=3.7蟒蛇=3.7

I have tried conda-forge and got the same error我试过 conda-forge 并得到了同样的错误

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?我知道这是因为 M1 芯片,我可能必须创建 osx-64 环境,但是有什么简单的方法可以做到吗?

My need is to create a miniconda environment with python 3.7 in it.我需要创建一个带有 python 3.7 的 miniconda 环境。

I got the same problem when I used my MBP (14 inch, M1 Pro chip) to create an Anaconda environment (python 3.7).当我使用我的 MBP(14 英寸,M1 Pro 芯片)创建一个 Anaconda 环境(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!但是,当我更改为 python 3.8 并使用 conda conda-forge forge 通道(将-c参数添加到 conda conda-forge forge )时,它起作用了!

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

I think maybe python 3.7 is no longer supported by m chips.我认为 m 芯片可能不再支持 python 3.7。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM