SoFunction
Updated on 2024-11-12

Python editor Pycharm installation and configuration of ultra-detailed tutorials

Today we recommend a very good Python editor, 90% of the world's Python developers will use the development tools ------Pycharm, completely free Oh!

1. Baidu search pycharm, enter pycharm official website, with 'PyCharm: the Python IDE for Professional' words is the official website.

2. Click 'Download' on the homepage of the official website as shown below to enter the download page.

3. In the download page has the following chart two download interface, a professional version, a community version, recommended the use of community version, free, and then click on the right side of the red box inside the 'Download' to download, where the download is relatively slow because the server in foreign countries, if you need to install the package can be concerned about me to get Oh!

4. The bottom left of the page can see the progress of the download, I use Chrome, so the bottom left can see the progress of the software download, if it is Microsoft Internet Explorer, is in the upper right corner of the page can see the progress of the download

5. After downloading, double-click the program to enter the installation page, click Next

6. This step is to change the software installation path, try not to install in the C disk, so as to avoid computer lag for a long time!

7. Change the path as shown below and click 'Next' to proceed to the next step.

8. Check all four boxes on this page and click 'Next' to proceed to the next step.

9. Directly click 'Install' to install the program.

10. Installation in progress

11. By default, no changes will be made to this page, so click 'Finish' to complete the installation.

12. After installation, there will be an icon on the desktop, which is successfully installed, and then double-click the mouse to open the icon, start configuring pycharm

13. Check the box below to agree to the usage agreement and click 'Continue' to proceed to the next step.

14. Click on 'Skip Remaining and Set Defaults' in the lower left corner of the page.

15. Here we choose to create a new project folder, click 'New Project'.

16. Come to the project configuration page, first of all, as shown below, first change the red part of the file path and name, that is, they create a new project to be under which disk, what is the name, or do not change it

17. After changing the following figure, then click on the 'Existing interpreter' at the bottom left, and continue to click on the red box at the bottom right '...' to find the location of Python, and then click on the 'Existing interpreter' at the bottom right. If you have not installed Python, please read my other blog on how to install Python.

18. After coming in, as shown below, first check 'Make available to all projects' to apply the Python interpreter to all projects, and then click on the right box to select the section '... '

19. Find your Python installation path in the current file checkbox, check it, and click OK.

20. Click OK on the following page

21. Change 'Create a welcome script' to unchecked, otherwise there will be a welcome py page file in the folder every time you create it.

22. Click 'Create' to create the project, and then it will go to pycharm.

23. As shown in the figure below, the red box to select the part of the tutorial for newcomers, the first time you install a good come in will have this interface, according to the screenshot prompts for the operation of the permanent switch-off

24. Let's simply write a Python code to test whether pycharm has been configured successfully, first of all, as shown below, right-click on 'Python000', which is the name of the project you have created, and then click on 'New' in the drop-down list that pops up. ', and then click 'Python File' in the pop-up drop-down list, that is to create a Python file.

25. Name the Python file, in English, Chinese or numeric, and press enter when you're done.

26. Go to the code editor page and write print('hello world') in it.

27. Right-click anywhere in the code editing area as shown below.

28. Right-click in the drop-down list after selecting ' Run'01' ', run the code, here everyone defines the Python file name is different, Run after the single quote inside the content is different, in short, click the Run button! Just click on the Run button.

29. After running, you can see the results of the run in the area below pycharm

Note: pycharm is at any time to write, at any time to automatically save, write the code do not have to manually save, do not write on the fork to turn off the window on the line, to receive the installation package and Python learning materials to focus on me Oh!

summarize

This article on the Python editor Pycharm installation and configuration of the article is introduced to this, more related Pycharm installation and configuration tutorial content, please search for my previous posts or continue to browse the following related articles I hope you will support me in the future!