SurferCloud PyPI Private Source Configuration
PyPI is the official repository of third-party libraries in Python.
To address the issues of limited access speed, restricted concurrent requests, frequent packet loss, and timeouts when accessing the default official source in China, SurferCloud's PyPI private source offers pure intranet access. On SurferCloud cloud hosts, you can obtain the required Python packages without an external IP address.
Global Configuration
Configure the following content in the ~/.pip/pip.conf file:
[global]
index-url = https://pypi.internal-mirrors.surfercloud.com/simple
Specified source for installing Python Package
pip3 install flask -i https://pypi.internal-mirrors.surfercloud.com/simple