首页 Macos 使用 conda 创建 python3.7 虚拟环境失败
文章
取消

Macos 使用 conda 创建 python3.7 虚拟环境失败

Macos M1 芯片,Anaconda使用 conda create -n py37 python=3.7 时,出现:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed

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

  - python=3.7

Current channels:

  - https://repo.anaconda.com/pkgs/main/osx-arm64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/osx-arm64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://conda.anaconda.org/conda-forge/osx-arm64
  - https://conda.anaconda.org/conda-forge/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.

是因为 对于 M1 芯片的 Macos,不支持 python3.8 一下的 python 版本。如果实在需要安装 python3.7,请按以下步骤:

  • conda create -n py37:创建名为 py37 的虚拟环境

  • conda activate py37:激活 py37 的虚拟环境

  • conda config --env --set subdir osx-64:使用 x86_64 架构的 channel

  • conda install python=3.7:安装 ptyhon3.7

参考

写在最后

感谢你在茫茫人海中找到我🕵🏼

🎉你是第 个读者

㊗️ 你平安喜乐,顺遂无忧!

希望你读完有所收获~

🥂🥂🥂

本文由作者按照 CC BY 4.0 进行授权

Ubuntu18.04 使用 nmap 查找 ip,并配置静态 ip

C++ 中 lamda 表达式的实现原理