今天我想通过 conda 创建一个环境,但当我输入以下命令时出现了错误:
$ conda create -n notion python=3.7
Channels:
- defaults
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:
- python=3.7*
Current channels:
- defaults
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.
经过搜索,我首先尝试了命令 conda config --append channels conda-forge
,但问题仍然存在。
最后发现,Python 3.7 不支持 macOS 的 arm64 版本。相关信息可以在这里找到。所以直接使用支持 arm64 的版本就好了。