PyQt5 Windows installation

The Internet speed at home is slag. When I use pip3 to install PyQt5, there is a timeout. I searched for the circle strategy on the Internet, and make a note here.

1. Find a suitable mirror source, and then cmd to ping the URL to ensure that the connection is normal

2. Configure pip.ini

[global]
timeout = 6000
trusted-host =  mirrors.aliyun.com
index-url = http://mirrors.aliyun.com/pypi/simple
[install]
use-mirrors = true
mirrors =  http://mirrors.aliyun.com

Ali's is used here, reference reference 2

The location of pip.ini is  %APPDATA%\pip\

 3. Use the command normally

pip3 install PyQt5

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325926048&siteId=291194637