PyCharm Installation Guide (Windows)
Category Programming Technology
PyCharm is a powerful Python editor with cross-platform capabilities. Given that there are currently fewer tutorials for the latest version of PyCharm, to save time, let's introduce how to install PyCharm on Windows.
Here is the download address for PyCharm: http://www.jetbrains.com/pycharm/download/#section=windows
After entering the website, we will see the following interface:
Professional indicates the professional version, and community is the community version. It is recommended to install the community version because it is free to use.
After downloading, click on the installation, remember to change the installation path. I have placed it in the E drive. After changing it, Next.
Next is
We can choose 32-bit or 64-bit according to our own computer. I think it should be basically 64-bit systems now.
- As follows
Click Install, and then wait quietly for the installation. If we haven't downloaded the Python interpreter before, we have to download the Python interpreter during the waiting time for installation, otherwise, PyCharm is just a soulless shell.
- Enter the official website of Python: //www.python.org/
Click Downloads to enter the download selection interface.
As shown below, select the Python version number we need and click Download.
I chose python3.5.1, and I will see the following interface.
Since we need the interpreter under Windows, we can choose the corresponding Windows version in the Operating System. There are 64-bit and 32-bit options to choose from. I chose the one marked with a red line. Executable indicates the executable version, which needs to be used after installation, and embeddable indicates the embedded version, which can be used after decompression.
The installation of the executable version is relatively simple, just keep the default. Embeddable needs attention. When we decompress
If it is the embeddable version, remember to add the path where the interpreter is located to the environment variables, otherwise, PyCharm cannot automatically obtain the location of the interpreter.
- Add environment variables
(1) Right-click on My Computer, click Properties, and the following interface will pop up.
(2) Click Advanced System Settings, and the following figure appears.
(3) Click Environment Variables.
(4) Find the Path in the system variables, edit it, paste the path where the Python interpreter is located at the end, and add a semicolon.
The environment variable configuration is finished.
At this time, PyCharm is also installed, and we enter the software.
Click Create New Project, the next is the key point.
Location is the path where we store the project, click on it.
Click the first one.
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 default, and the rest do not need to be clicked, then click Create. The following interface appears, which is PyCharm configuring the environment, waiting quietly. Finally, click Close to close the prompt.
- Establish the compilation environment
Right-click
Give the file a name and click OK
The system will default to generate hello.py
Well, so far, our initial work is basically completed.
- Let's compile it
The shortcut key is ctrl+shift+F10 or click
- By the way, since I have added it before, I can compile it directly. There is also a very important step that has not been said, otherwise, PyCharm cannot find the interpreter and cannot compile.
Click File, select settings, and click
Add an interpreter
Finally, click Apply. Wait for the system to configure.
If we need to add a new module, click the green + sign
Then search for pymysql directly
Then click Install
The above is the installation process of PyCharm and initialization, as well as the installation and configuration of the Python interpreter.
>
Original text link: https://blog.csdn.net/c_shell_python/article/details/79647627