刪除Conda環境 - Removing Conda environment

問題:

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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章