校内软件镜像仓
-
根据安全管理,HPC三期平台限制网络访问,用户需使用校内搭建的软件镜像仓获取常见镜像、依赖包等。
-
软件镜像仓门户(WEB访问):https://nexus.hpc.hkust-gz.edu.cn/
-
提供类型:Maven、npm、docker、conda、PyPI、yum等
使用方式
信息
使用前请确认能否解析域名:harbor.internal.com
无法解析可手动加DNS解析(hosts文件),IP信息可在登录节点查看。

PyPI(Python)
全局配置(虚拟环境)
使用在虚拟环境中通过pip config set设置
pip config set global.index-url http://harbor.internal.com:8081/repository/pypi-hkust/simple
pip config set install.trusted-host harbor.internal.com
临时配置
使用pip安装包时,可以通过--index-url参数指定仓库地址:http://harbor.internal.com:8081/repository/pypi-hkust/simple
pip install <pkg> --index-url http://harbor.internal.com:8081/repository/pypi-hkust/simple --trusted-host harbor.internal.com
查看可安装版本
查看仓库中可安装的依赖包版本
pip index versions <pkg> --index-url http://harbor.internal.com:8081/repository/pypi-hkust/simple --trusted-host harbor.internal.com
Conda
全局配置
conda config --remove channels defaults
conda config --add channels http://harbor.internal.com:8081/repository/conda-hkust/main
conda config --add channels http://harbor.internal.com:8081/repository/conda-hkust/free
conda config --add channels http://harbor.internal.com:8081/repository/conda-hkust/msys2
conda config --add channels http://harbor.internal.com:8081/repository/conda-hkust/pro
conda config --add channels http://harbor.internal.com:8081/repository/conda-hkust/r
查看可安装版本
查看仓库中可安装的依赖包版本
conda search <pkg>