Aus*_*tin 6 python anaconda conda
我尝试安装 rpy2 以便我可以使用 R 文件 ( .rda)工作conda install -c r rpy2,但它完全搞砸了我的环境。
例如:
1) 当我尝试导入pandas 时,出现此错误:AttributeError: module 'pandas' has no attribute 'core'
2)当我尝试导入matplotlib 时,出现此错误:AttributeError: module 'matplotlib' has no attribute 'artist'
在安装此软件包之前,我没有遇到这些问题。有没有办法撤销我刚刚做的事情——就好像我从来没有安装过一样?
iz_*_*iz_ 16
您可以“回滚”到以前的版本。第一次运行:
conda list --revisions
Run Code Online (Sandbox Code Playgroud)
您将获得带有修订号的修订列表。然后,查看倒数第二个修订版并记下其编号。要恢复到此版本,请运行:
conda install --revision N
Run Code Online (Sandbox Code Playgroud)
哪里N是修订号。