Pycharm installation tutorial-2023

Pycharm is a powerful Python IDE (Integrated Development Environment), which supports code highlighting, code hints, auto-completion, debugging, version control and many other functions. This article will introduce in detail how to install, activate and create new projects for Pycharm.

Install Pycharm

Download the Pycharm installation package. You can go to the Pycharm official website (https://www.jetbrains.com/pycharm/) to download.

Run the installation package. Double-click the downloaded installation package, and follow the prompts to install it.

Select the installation path. You can use the default installation path or customize the installation path.

During the installation process, you need to select the installation components, you can select the required components, or you can choose to install them all.

finish installation. After the installation process is complete, Pycharm can be launched.

Activate Pycharm

Pycharm has two versions, the free Community version and the paid Professional version. The Community version can be used for free, but the Professional version needs to be purchased to use the license.
Community version. Start Pycharm, if it is the Community version, you can use it directly.

Activate the Professional version. Start Pycharm, if it is the Professional version, you need to enter the authorization code to use it. You can go to VRG123COM to get the authorization code for free. 厃 Select Register in the Help menu of Pycharm, and then enter the authorization code to activate.
To use the PyCharm activation code, please follow these steps:
Open PyCharm and click "Help" in the top menu.
Select "Register" from the drop-down menu.
In the registration window, select "Activation Code" and enter the code you received.
Click "Activate" and your PyCharm IDE will be activated for use.
Note: If you are using PyCharm Professional Edition, a license key is required for activation. If you have the community edition, you can use it for free, but some advanced features may not be available.

create new project

Start Pycharm. After starting Pycharm, you can see the main interface.

Choose Create New Project. You can select Create New Project in Pycharm's Welcome interface, or select New Project in Pycharm's File menu.

Select Project Settings. In the Create New Project dialog box, you need to select the project name, project path, project environment and other settings.

Finish creating. Click the Create button to complete the project creation.

add files. In the project interface, you can right-click the project directory and select New->Python File to create a new Python file.

Run Python code in Pycharm In
Pycharm, you can easily run Python code as follows:

Open the Python file to run. In Pycharm, open the Python file you want to run.

Select the mode of operation. In Pycharm, you can choose how to run Python code, such as running the current file, running the currently selected code, and so on.

Run the code. Click the run button to run the Python code in Pycharm.

View the results of the run. In Pycharm, you can view the running results, and you can view the output of the code through the console.

The above is the method of running Python code in Pycharm. Through Pycharm, you can easily write and run Python code.

おすすめ

転載: blog.csdn.net/qq_17584941/article/details/128874872