Skip to Content
Linux Service Configuration GuideSurfercloud PyPI Private Source Configuration

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