使用 pip 下载带源的软件包
要下载带源的软件包,可以使用以下命令:
pip install 包名 -i 'https://pypi.tuna.tsinghua.edu.cn/simple/'
其中,'包名'是要下载的软件包的名称,'https://pypi.tuna.tsinghua.edu.cn/simple/' 是一个带源的镜像地址,可以使用其他镜像地址替换。
例如,要下载 'numpy' 软件包,并使用清华大学的镜像源,可以使用以下命令:
pip install numpy -i 'https://pypi.tuna.tsinghua.edu.cn/simple/'
原文地址: https://www.cveoy.top/t/topic/pd4C 著作权归作者所有。请勿转载和采集!