在 M1 Mac 上使用 conda 安装 python >3.9 时出错

问题描述 投票:0回答:1

所以,自从我重新安装 conda 以来,我遇到了这个非常烦人的问题,我无法使用高于 3.9 的 python 版本创建新环境。

我当前正在运行 macOS Sonoma,我检查了 conda 的平台设置为 osx-arm64

conda create -n env python=3.11

我已经针对 conda 23.9.0/23.10.0 和 23.11.0 进行了测试,基本上在所有地方都会出现错误。

Solving environment: failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - nothing provides tzdata needed by python-3.11.0-h559f36b_0_cpython

Could not solve for environment specs
The following package could not be installed
└─ python 3.11**  is not installable because it requires
   └─ tzdata, which does not exist (perhaps a missing channel).

任何建议表示赞赏!

python macos package conda
1个回答
0
投票

我建议寻找软件包:tzdata 并按照错误提示安装它:

brew search tzdata

然后安装建议的软件包。

我还建议检查您环境的健康状况,如 conda 的文档所示:

conda doctor
© www.soinside.com 2019 - 2024. All rights reserved.