Tec*_*879 36 python python-3.x anaconda conda
有没有办法将当前的 conda 基础(根)环境(当前有 Python 3.8.11)更新为 Python 3.9 或 3.10?我知道使用新的虚拟环境是推荐的方法,但我仍然想学习如何操作。
我尝试使用conda install python=3.9and conda install python=3.10,这是几年前一些帖子推荐的,但它们不起作用,最终出现以下错误
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: -
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed
Run Code Online (Sandbox Code Playgroud)
另外,使用conda update python仅更改了微版本号(我认为它从Python 3.8.10升级到3.8.11)
Pet*_*ter 31
根据您的错误消息,您无法将 conda base 升级到 python 3.10,因为这会导致不兼容。(据说 numpy 包存在一些问题。)所以你必须等待下一个 Anaconda 版本。
然而,conda 的重点是使用虚拟环境:
conda create --name py10 python=3.10
Run Code Online (Sandbox Code Playgroud)
这允许您立即安装 Python 3.10。
Vic*_*ato 23
做就是了
conda update python你应该没问题。如果你特别想要 3.10,你可以这样做conda install python="3.10"。
这将更新您当前的环境版本
| 归档时间: |
|
| 查看次数: |
91738 次 |
| 最近记录: |