配置conda以使用您本地的AEN仓库#
您可以配置AEN以使用本地的Anaconda Repository服务器,而不是Anaconda.org。
要配置AEN以使用本地现场存储库,您必须:
在计算节点上编辑condarc#
注意:如果有你尚未镜像的频道,你必须从配置中移除它们。
编辑文件 .condarc
以匹配以下内容:
#/opt/wakari/anaconda/.condarc
channels:
- defaults
create_default_packages:
- anaconda-client
- ipykernel
# Default channels is needed for when users override the system .condarc
# with ~/.condarc. This ensures that "defaults" maps to your Anaconda Repository and not
# repo.anaconda.com
default_channels:
- http://<your Anaconda Repository name>:8080/conda/anaconda
- http://<your Anaconda Repository name>:8080/conda/wakari
- http://<your Anaconda Repository name>:8080/conda/r-channel
# Note: You must add the "conda" subdirectory to the end
channel_alias: http://<your Anaconda Repository name:8080/conda
注意:将
替换为您本地Anaconda Repository安装的实际名称或IP地址。
配置Anaconda客户端#
Anaconda 客户端允许用户从命令行与仓库进行交互——包括搜索包、登录、上传包等。
为计算节点上的所有用户设置anaconda-client的默认配置:
sudo /opt/wakari/anaconda/bin/anaconda config --set url http://<your Anaconda Repository>:8080/api -s
注意:需要Sudo权限,因为配置文件被写入到根文件系统:/etc/xdg/binstar/config.yaml
。
注意:将
替换为您本地Anaconda Repository安装的实际名称或IP地址。
接下来是什么#
查看可选配置任务,看看是否有适用于您的系统。