Conda and pip specify mirror source download

When downloading the required package, you will inevitably encounter problems caused by the source :

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.

Don't panic at this time, we can specify some stable and effective sources to download and install. The following are the mirror sources I provided:

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

Command to specify mirror source:

①conda

conda install -c 镜像源 包名

②pip

pip install 包名 -i 镜像源

Guess you like

Origin blog.csdn.net/m0_64007201/article/details/127478528