Python pip: Speed up package installations

Python’s pip package manager is widely used to download and maintain python packages. Lately, I have noticed pip taking quite a while when downloading new packages.

I have found that you can increase the package download speed considerably by simply changing the default pip mirror by adding the following to ~/.pip/pip.conf file:

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

Source: Stackoverflow