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>
JSON Formatter
Process JSON data online: format, minify, and validate to boost your development and debugging efficiency.

Code Compare
Professionally compare differences between two texts or code snippets. Highlights additions, deletions, and modifications to assist with code review, document merging, and version control.

PYC Decompiler
Restore Python bytecode .pyc files into readable source code for easy code auditing and learning. Supports mainstream versions.

URL to JSON Parser
Parse URL strings into structured JSON to quickly extract key information like protocols, parameters, and paths.

JSON Formatter
Process JSON data online: format, minify, and validate to boost your development and debugging efficiency.

Code Compare
Professionally compare differences between two texts or code snippets. Highlights additions, deletions, and modifications to assist with code review, document merging, and version control.

PYC Decompiler
Restore Python bytecode .pyc files into readable source code for easy code auditing and learning. Supports mainstream versions.

URL to JSON Parser
Parse URL strings into structured JSON to quickly extract key information like protocols, parameters, and paths.

JSON to TypeScript Converter
Automatically convert JSON data into TypeScript interfaces or type aliases for frontend data modeling and API integration.
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.