Article directory
Take Windows as an example here
Python installation
- Of course, go to the Python official website to download,
https://www.python.org/downloads/
click me to go directly , as shown in the figure:
You can download the latest version, and you can pull down to find the previous specific version to install, as shown in the figure:
Here, the latest version is selected first for installation. - After the download is complete, find the installation package and double-click to open it
- Enter the installation page, pay attention to check here
Add Python 3.10 to PATH
, add environment variables, as shown in the figure:
Next clickNext
, as shown in the figure
- Select the installation location for easy management, as shown in the figure,
the newly created Python directory of the D disk selected here, after the selection is complete, select toInstall
start the installation. - After the installation is complete, there will be an option,
关闭路径长度的限制
, click it, as shown in the figure:
After selecting, a confirmation operation box will pop up, click Yes, as shown in the figure:
Congratulations here, Python is considered to be installed. - To verify whether the installation is successful, you can use the shortcut key,
win+r
entercdm
and click OK, and a black window will pop up, as shown in the figure:
- Enter in the black window
python
, as shown in the figure:
a version number will appear, and you're done here.
Installation and configuration of PyCharm tools
- It is still indispensable to download,
https://www.jetbrains.com/pycharm/download/#section=windows
click me directly , after entering the official website,社区版
just choose, the professional version has a free 30-day trial period, as shown in the figure:
- After the download is complete, you can choose the installation location by default, and just keep clicking on others
next
. - After the installation is complete, select and create a new project, as shown in the figure:
Step 2 has been read here, as shown in the figure:
there is no one at the beginning, enter the selection page as shown in the figure:
after the selection is completed, clickcreate
to create your project, as shown in the figure :
Configure PyCharm to set the Chinese interface
You can see that the default interface is English. If you want to modify it, you need to configure it briefly. As shown in the picture: select plugins插件
Search chinese
, and then choose install
to install. After the installation is complete, it is indeed ok . As shown in the picture
: you will be asked
whether to restart the editor, just confirm.
picture:
modify font size
Click Settings, as follows:
find the font, enter the appropriate font size, as follows: