When you install a third-party package python, cmd download speed is generally slower. It requires the use of mirrors to improve speed.
1, the temporary use of a mirror
Use Tsinghua University ( https://pypi.tuna.tsinghua.edu.cn/simple/ ) of the mirror, download pandas library.
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pandas
2, permanent image
Use Tsinghua University ( https://pypi.tuna.tsinghua.edu.cn/simple/ ) of the mirror, download pandas library.
windows:
① in the user directory under the C drive, create a new folder pip in this folder, then create a pip.ini file. As shown below:
② pip.ini open file, open sublime text3 available, write statement shown below.
[global]
index-url =https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host = https://pypi.tuna.tsinghua.edu.cn
③ in cmd, input pip install pandas, you can see, it has been arranged on the mirror. As shown below.