gpt4 book ai didi

python - Conda 安装搞砸了我的环境。我可以撤消它吗?

转载 作者:行者123 更新时间:2023-11-28 22:13:10 26 4
gpt4 key购买 nike

我尝试安装 rpy2,以便我可以使用 conda install -c r rpy2 处理 R 文件 (.rda),但它完全搞砸了我的环境。

例如:

1) 当我尝试导入 pandas 时,出现此错误:AttributeError: module 'pandas' has no attribute 'core'

2) 当我尝试导入 ma​​tplotlib 时,出现此错误:AttributeError: module 'matplotlib' has no attribute 'artist'

在安装此软件包之前,我没有遇到这些问题。有没有办法撤消我刚才所做的操作 - 就好像我从来没有安装过它一样?

最佳答案

您可以“回滚”到以前的修订版。首先,运行:

conda list --revisions

您将获得一份带有修订编号的修订列表。然后,查看倒数第二个修订版并记下其编号。要恢复到此修订版,请运行:

conda install --revision N

其中 N 是修订号。

关于python - Conda 安装搞砸了我的环境。我可以撤消它吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54172339/

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