本文介紹了如何在 conda 虛擬環境中卸載所有未使用的軟件包?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我有一個 conda 虛擬環境,其中安裝了幾個未使用的包(使用 pip install
或 conda install
).
I have a conda virtual environment with several unused packages installed inside it (either using pip install
or conda install
).
清理它的最簡單方法是什么,以便只保留我的代碼實際使用的包,而卸載其他包?
What is the easiest way to clean it up so that only packages that are actually used by my code remain, and the others are uninstalled?
推薦答案
conda clean --yes --all
將消毒一切.但請注意:如果您想要執行任何類型的 --offline
操作,請不要使用 --all
;更有選擇性.
will sanitize everything. But take note: if you ever want to do any type of --offline
operations, don't use --all
; be more selective.
這篇關于如何在 conda 虛擬環境中卸載所有未使用的軟件包?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!