我尝试安装 rpy2,以便我可以使用 conda install -c r rpy2
处理 R 文件 (.rda
),但它完全搞砸了我的环境。
例如:
1) 当我尝试导入 pandas 时,出现此错误:AttributeError: module 'pandas' has no attribute 'core'
2) 当我尝试导入 matplotlib 时,出现此错误:AttributeError: module 'matplotlib' has no attribute 'artist'
在安装此软件包之前,我没有遇到这些问题。有没有办法撤消我刚才所做的操作 - 就好像我从来没有安装过它一样?
最佳答案
您可以“回滚”到以前的修订版。首先,运行:
conda list --revisions
您将获得一份带有修订编号的修订列表。然后,查看倒数第二个修订版并记下其编号。要恢复到此修订版,请运行:
conda install --revision N
其中 N
是修订号。
关于python - Conda 安装搞砸了我的环境。我可以撤消它吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54172339/