pip mirror source configuration under Windows

1. Description

The configuration of the pip image source is so important. You may not know what projects you will be working on later, but you may find that pip cannot install many things. At this time, it may be that your image is not configured properly.

2. Configuration steps

①Create a new pip.ini folder and create the file
under %APPDATA%\pip\the pathpip.ini

Insert image description here
②pip.ini file content

This is my configuration, you can copy it directly

[global]
timeout = 6000
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
extra-index-url=
    http://mirrors.aliyun.com/pypi/simple/
    http://pypi.mirrors.ustc.edu.cn/simple/
trusted-host=
    mirrors.aliyun.com
    pypi.tuna.tsinghua.edu.cn
    pypi.mirrors.ustc.edu.cn

Guess you like

Origin blog.csdn.net/xdg15294969271/article/details/130856789