問題:
I want to remove a certain environment created with conda.我想刪除使用conda創建的特定環境。 How can I achieve that?我該如何實現? Let's say I have an active testenv environment.假設我有一個活躍的testenv環境。 I tried, by following documentation , with:我通過遵循文檔嘗試了:
$ conda env remove
CondaEnvironmentError: cannot remove current environment. deactivate and run conda remove again
I then deactivate it:然後,我將其停用:
$ source deactivate
I try running again the command to remove it and I still get the same error.我嘗試再次運行命令將其刪除,但仍然收到相同的錯誤。 What is going wrong here?這是怎麼了?
解決方案:
參考一: https://stackoom.com/question/3K8OQ參考二: Removing Conda environment