The default PIP is to use the official Python source, but because the foreign official source is often the wall, resulting in unavailability, we can use the domestic Python image source, to solve the problem of Python installation not on the library.
There are many sources available online, for example: Watercress: http://pypi.douban.com/simple/Tsinghua: Https://pypi.tuna.tsinghua.edu.cn/simple
Note that there is a/simple directory behind!!!
1, temporary use, only use the specified source when installing pillow
PIP3 install-i Https://pypi.tuna.tsinghua.edu.cn/simple Pillow
2, permanent modification, once and for all
Under Linux, modify ~/.pip/pip.conf (without creating one), modify Index-url to tuna as follows: [Global] Index-url = https://pypi.tuna.tsinghua.edu.cn/ Simple windows, create a PIP directory directly in the user directory, such as: C:\Users\xx\pip, new file Pip.ini, the following: [global] Index-url = https:// Pypi.tuna.tsinghua.edu.cn/simple
Use a domestic image source to accelerate the installation of Python PyPI packages