本文主要是介绍managing channels for conda,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
参考:
- https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-channels.html
- https://docs.conda.io/projects/conda/en/latest/user-guide/concepts/channels.html
channels是什么
Conda channels are the locations where packages are stored. They serve as the base for hosting and managing packages. Conda packages are downloaded from remote channels, which are URLs to directories containing conda packages. The conda command searches a default set of channels, and packages are automatically downloaded and updated from https://repo.anaconda.com/pkgs/. You can modify what remote channels are automatically searched. You might want to do this to maintain a private or internal channel. For details, see how to modify your channel lists.
conda config --set channel_priority false # To make conda install the newest version of a package in any listed channel:
conda config --add channels https://mirrors.aliyun.com/pypi/simple/ # adds the channel "new_channel" to the top of the channel list, making it the highest priority
conda config --append channels new_channel # adds the new channel to the bottom of the channel list, making it the lowest priority
conda update -n base conda # update condaconda config --show-sources/home/users/xxx/.condarcchannels:- defaults
show_channel_urls: true
这篇关于managing channels for conda的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!