resetting conda channel priorities

半城伤御伤魂 提交于 2019-12-03 10:38:36

Change the order from ~/.condarc so that defaults the first channel as

channels:
  - defaults
  - conda-forge

and add this line to it

channel_priority: true

or run the following code in command-line

conda config --set channel_priority true

then again run

conda update --all

Good Luck

Go to your home directory and open .condarc in an editor. Go to channels and edit the priority:

channels:
  - defaults
  - my_conda_channel

Now defaults will be preferred over my_conda_channel. You can also delete my_conda_channel.

Another option would be to move your channel to the bottom of the priority list.
Run the command....

conda config --append channels my_conda_channel

You should get a response like this...

Warning: 'my_conda_channel' already in 'channels' list, moving to the bottom

Verify...

conda config --get channels

Which should give you something like...

--add channels 'defaults'   # highest priority
--add channels 'my_conda_channel'   # lowest priority
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!