The principle of Python pip installation is to download from the official source of Python https://pypi.python.org/pypi to local installation,
However, access to the official source network is unstable and slow. I often encounter a problem. The pip installation package is slow. After a period of time, the installation timed out and the installation failed!
Later, I used Douban Source to install the Python package, which was super fast!
Douban source address:
https://pypi.douban.com/simple/
Install using Douban source:
sudo pip install -i https://pypi.douban.com/simple/ pymysql #Replace pymysql with the name of the package you want to install
Recommended Posts