[英]Anaconda - updating packages in a specific virtual environment
我安裝了Python 3.x作為我的根Anaconda環境。 我還將Intel Distribution for Python安裝為虛擬環境。 當我做conda update --all
,在任一環境中它只查找要更新的主要Conda包。 如果我首先設置conda config --add channels intel
,它會在我更新任一環境中的軟件包時搜索與Intel相關的軟件包。 但是,我只希望它在Intel環境中更新Intel軟件包,而我不希望它在我的root環境中更新為Intel變體。
如何以這種方式更新給定環境中的所有包?
您可以強制conda僅在更新時查看相應的頻道。
# In the root env
conda update -c defaults --override-channels --all
# In the Intel env
conda update -c intel --override-channels --all
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.