We use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
If this tool helped you, you can buy us a coffee ☕
Instantly generate pip mirror configurations to solve slow Python package downloads and boost development efficiency.
https://pypi.tuna.tsinghua.edu.cn/simpleInstall command
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple <package-name>https://mirrors.aliyun.com/pypi/simpleInstall command
pip install -i https://mirrors.aliyun.com/pypi/simple <package-name>https://pypi.douban.com/simpleInstall command
pip install -i https://pypi.douban.com/simple <package-name>https://repo.huaweicloud.com/repository/pypi/simpleInstall command
pip install -i https://repo.huaweicloud.com/repository/pypi/simple <package-name>https://mirrors.cloud.tencent.com/pypi/simpleInstall command
pip install -i https://mirrors.cloud.tencent.com/pypi/simple <package-name>https://mirrors.ustc.edu.cn/pypi/simpleInstall command
pip install -i https://mirrors.ustc.edu.cn/pypi/simple <package-name>When developers in China download Python packages from the official PyPI repository, they often experience slow download speeds dropping to a few KB/s or even timeout failures. This tool automatically generates standard pip configuration files or command-line instructions using pre-configured domestic mirror addresses like Tsinghua University and Alibaba Cloud. By switching the default download source to a local server, download speeds can be boosted by 10 to 50 times. Mirror sources are local servers that regularly synchronize with the official PyPI repository, ensuring package versions remain consistent with the official releases.
How do I check the current mirror source used by pip?
Run pip config list and check the index-url field, or observe the download URL during a pip install.
Why do I need to configure trusted-host? Some mirror sources use self-signed SSL certificates, and this configuration bypasses certificate verification. While it slightly reduces security, it ensures availability. It is recommended to use this configuration only for trusted institutional mirrors like Tsinghua University.
A single mirror source may become temporarily unavailable due to maintenance, so we recommend bookmarking this tool page for quick switching. Windows users should ensure the configuration file is saved in the correct path (verify by running %APPDATA%). Regularly check mirror speeds; the Tsinghua University mirror typically performs best in educational network environments.
For enterprise-level development environments, it is recommended to pre-configure the mirror source in your base Docker image. Example configuration:RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple \
&& pip config set install.trusted-host pypi.tuna.tsinghua.edu.cn
Note that the Huawei Cloud mirror offers better support for ARM architectures, making it suitable for localized environments.