PyQt5 detailed installation tutorial?

1, first install python

1. Install Python

Install version:python 3.7.4

 

 

Note: Double-click to start the installation, they must take the following Add Pathon the hook (represented added to the environment variables, such cmd can also be used)

If you forget, you're unloading heavy equipment, or Baidu, to manually add their own environment variable.

2. Install Pycharm

 

  • Official Website: http://www.jetbrains.com/pycharm/
  • Professional: Professional Edition (fee, a lot of crack-line method)
  • Community: Community Edition (free, I use this)

3. Install PyQt5

Install version:PyQt5-5.13.0

 

  • Shortcut to open run Ctrl + R, typecmd
  • Enter the command directly installed pip install pyqt5

If slow, is to use domestic sources: pip install pyqt5 -i https://pypi.tuna.tsinghua.edu.cn/simple.

Note here that the error may occur like him to try several times.

 

4. Installation PyQt5-tools

Install version:PyQt5-tools-5.13.0.1.5

 

  • Shortcut to open run Ctrl + R, typecmd
  • Enter the command directly installed pip install pyqt5-tools

If slow, is to use domestic sources: pip install pyqt5-tools -i https://pypi.tuna.tsinghua.edu.cn/simple.

Note here that the error may occur like him to try several times.

 

 


 

 

5. Possible Problems

 

 

1. Qt Designer program location

path:D:\Python3\Lib\site-packages\pyqt5_tools\Qt\bin

 

Python3 + Pycharm + PyQt5 Detailed graphics environment to build step

 

2. Qt Designer could not be opened

Error:由于找不到msvcp140.dll无法继续执行代码

solve:

  • Check whether the installation:Microsoft Visual C++ 2015 Redistributable(x64)
  • Check whether the installation:Microsoft Visual C++ 2015 Redistributable(x86)

  • Official download link: www.microsoft.com

  • connection

Published 16 original articles · won praise 15 · views 10000 +

Guess you like

Origin blog.csdn.net/qq_40318907/article/details/104019874