PyQt5 (1) environment construction

Note: This post is a summary post of the problem when using PyQt5. If there is any mistake, please correct it and exchange and learn together. My system is win10.

table of Contents

 

One, install Anaconda

(1) Download Anaconda

(2) Install Anaconda and go all the way to next

(3) Check whether python and PyQt5 are installed

Two, install PyCharm

(1) Download and install PyCharm

(2) Check whether PyCharm is installed


One, install Anaconda

Anaconda ( official website ) is a release version that can easily obtain and manage the package, and at the same time can manage the environment uniformly. Anaconda contains more than 180 scientific packages and their dependencies, including conda and Python. Which includes Python and PyQt5.

Anaconda has the following characteristics: 1) open source; 2) simple installation process; 3) high-performance use of Python and R language; 4) free community support

(1) Download Anaconda

Download from the official website https://www.anaconda.com/products/individual

Or download from a third-party website https://mydown.yesky.com/pcsoft/413570826.html

(2) Install Anaconda and go all the way to next

(3) Check whether python and PyQt5 are installed

1) Open the cmd window, enter python --version, if the version number is displayed, pyhon is installed normally

 

2) Enter python first, then import the PyQt5 package, if no error is reported, the installation is normal

 

Two, install PyCharm

PyCharm is a Python  IDE with a set of tools that can help users improve their efficiency when developing in Python language, such as debugging, syntax highlighting, project management, code jump, smart prompts, automatic completion, unit testing, version control . In addition, the IDE provides some advanced features to support professional web development under the Django framework .

(1) Download and install PyCharm

Download https://www.jetbrains.com/pycharm/download/#section=windows ,

Professional means professional edition, community is community edition, it is recommended to install community edition because it is free to use.

 

 

 

After starting the installation, all the way next

(2) Check whether PyCharm is installed

1 ) At this time Pycharm is also installed, and we enter the software.

2 ) Click Create New Project, the next step is to focus

Location is the path where we store the project, click

With this triangle symbol, you can see that pycharm has automatically acquired Python 3.5.

Click on the first

We can choose the path of Location, such as

Remember, the path we choose needs to be empty, otherwise it cannot be created. The second Location does not need to be moved, it is automatically defaulted, and the rest are not needed, and then click Create. The following interface appears, this is Pycharm is configuring the environment, waiting quietly. Finally, click close to turn off the prompt.

3 ) Establish a compilation environment

Right click

Click New, select Python File

Give the file a name and click OK

The system will generate hello.py by default

Okay, so far, our initial work is basically completed.

4 ) Let's compile it

Shortcut key ctrl+shift+F10 or click

The green triangle will compile, and the compilation result is as follows

 

 


 

Guess you like

Origin blog.csdn.net/zhuimeng_ruili/article/details/110210048