anaconda遇到:Solving environment: failed with initial frozen solve. Retrying with flexible solve.問題
阿新 • • 發佈:2021-10-28
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
因此conda-forge
是可以安裝軟體包的附加渠道。從這個意義上說,它不是比預設頻道或其他數百(數千個)頻道中人們釋出套餐所特有的更特別的。如果在https://anaconda.org註冊並上傳自己的Conda軟體包,可以新增自己的頻道。
有兩種方法可以更改頻道的選項。一種是每次安裝包時指定一個頻道:
conda install -c some-channel packagename
當然,該套件必須存在於該頻道上。如果經常使用相同的頻道,那麼可能需要將其新增到配置中。你可以寫
conda config --add channels some-channel
將通道新增some-channel
到channels
配置列表的頂部。這給出some-channel
了最高優先順序(當多個通道具有特定包時,優先順序(部分地)確定選擇哪個通道)。要將頻道新增到列表的末尾併為其指定最低優先順序,請鍵入
conda config --append channels some-channel
如果您想要刪除新增的頻道,可以通過書寫來完成
conda config --remove channels some-channel
看到
conda config -h
獲得更多選擇。
綜上所述,使用該conda-forge
defaults
Continuum維護的頻道有三個主要原因:
conda-forge
可能比defaults
頻道更新conda-forge
頻道上有不可用的軟體包defaults
- 更願意使用依賴項,如
openblas
(fromconda-forge
)而不是mkl
(fromdefaults
)。