从头开始重新安装conda和软件包

Ten*_*sor 6 anaconda conda

由于pip安装,我的conda已损坏.在操作之后,我最终在同一个conda root env中有2个Python 2.7解释器.....

我有其他conda env.安全无缺.如何以干净的方式重新安装默认的根env?我通过以下方式导出了包裹:

conda list --explicit > spec-file.txt   
conda create --name myenv --file spec-file.txt     # Create Env using a file
Run Code Online (Sandbox Code Playgroud)

Ten*_*sor 1

解决方案 :

1) 在新文件夹中重新安装 minconda 2) 删除spec-file.txt 中的重复项 2) 使用spec-file.txt 创建新的 conda env

我发现了更干净、更好的方法....(备份 conda 文件夹也是一个很好的解决方案)