conda和pip指定镜像源下载

在下载需要的包的时候难免会遇到带来的问题:

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

这个时候不必惊慌,我们可以指定一些稳定有效的源去下载安装。以下是我提供的镜像源:

https://pypi.doubanio.com/simple/             # 豆瓣
https://pypi.tuna.tsinghua.edu.cn/simple     # 清华
https://pypi.mirrors.ustc.edu.cn/simple/     # 中国科学技术大学

指定镜像源的命令:

①conda

conda install -c 镜像源 包名

②pip

pip install 包名 -i 镜像源

猜你喜欢

转载自blog.csdn.net/m0_64007201/article/details/127478528