1. 程式人生 > 其它 >anaconda遇到:Solving environment: failed with initial frozen solve. Retrying with flexible solve.問題

anaconda遇到:Solving environment: failed with initial frozen solve. Retrying with flexible solve.問題

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-channelchannels配置列表的頂部。這給出some-channel了最高優先順序(當多個通道具有特定包時,優先順序(部分地)確定選擇哪個通道)。要將頻道新增到列表的末尾併為其指定最低優先順序,請鍵入

conda config --append channels some-channel

如果您想要刪除新增的頻道,可以通過書寫來完成

conda config --remove channels some-channel

看到

conda config -h

獲得更多選擇。

綜上所述,使用該conda-forge

頻道取代defaultsContinuum維護的頻道有三個主要原因:

  1. conda-forge 可能defaults頻道更新
  2. conda-forge頻道上有不可用的軟體包defaults
  3. 更願意使用依賴項,如openblas(from conda-forge)而不是mkl(from defaults)。