gpt4 book ai didi

python-3.x - 将 anaconda 虚拟环境更新为特定的 python 版本

转载 作者:行者123 更新时间:2023-12-04 19:08:51 31 4
gpt4 key购买 nike

我在我的 unbuntu 服务器上安装了带有 anaconda 的 python 3.7,并创建了一个名为 py36 的虚拟环境。我不小心将它创建为 python 2.7 环境。有没有办法将虚拟环境 py36 及其所有软件包更新为 python 3.5?

最佳答案

您可以激活环境并安装所需的任何 Python 版本:

conda activate py36
conda install python=3.X

这将自动将所有软件包更新为您想要的版本。

关于python-3.x - 将 anaconda 虚拟环境更新为特定的 python 版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62146273/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com