Win11 download configuration Python environment + pycharm download

Two days ago, I happily upgraded my reinstalled win10 to win11. I was afraid that the upgrade would fail, but the effect was not bad. Then I suddenly wanted to learn Python, so let’s configure the environment first.


1. Download the installation package

It is recommended to go to the official website, because since Python3, Python2 has been slowly eliminated (crying), so download Python3 directly, but 3.9 and later versions are no longer compatible with win7, so pay attention when downloading

1.1 Click Download, then select Windows

insert image description here

1.2 Choose the version you like to download 1

Here are some version selection issues:

​ embeddable package: Indicates the green installation-free version in .zip format, which can be directly embedded (integrated) into other applications;
executable installer: Indicates the executable program in .exe format, which is a complete offline installation package, generally choose this can;

Here I finally chose the exe executable program of Python3.10.7 (enough of the inconvenience caused by the advanced version, so I did not choose the latest 3.11)

insert image description here

1.3 Start the installation

Find the exe file you just downloaded, double-click to start the installation

Install Now: Default installation (directly installed on the C drive, and check all components and download)

​ Customize installation: Customize installation (optional installation path and components)

​ Install launcher for all users(requires elevation) (checked by default)

​ Add Python to PATH (Must be checked, add the installation path of the Python interpreter to the system variable, the purpose: to find the Python interpreter faster for the operating system)

insert image description here

Documentation: Install Python official documentation
Pip: Install Python package manager, download and install Python package
tcl/tk and IDLE: Install TK library and IDLE editor (development environment)
Python test suite: Install standard library and test suite
Py launcher: py Suffix files are executed with python interpreter
For all users: all users can use

insert image description here

Install for all users: All users can use
Associate files with Python (requires the py launcher): Associate py files with python (requires the python launcher)
Create shortcuts for installed application: Create shortcuts for applications
Add Python to environment variables : Add Python to the virtual environment
Precompile standard library: After precompiling the standard library,
both are Debug-related tools: there is no need for the IDE of pycharm

insert image description here
wait for a while

insert image description here
When this interface appears, the installation is complete.
insert image description here

1.4 Test it out

To verify whether it is successful, press win+R, enter cmd, enter Python and
press Enter, and then enter some python statements in it, as follows, the test is successful

insert image description here

1.5 Installed parts

Press win to find the installed Python

insert image description here

IDLE: Python editor

Two, install pycharm

Because there is a choice of python interpreter, so you need to download pycharm to compile

2.1 Download the installation package

Enter the official website to download the installation package

insert image description here

Download according to your own computer, choose the community version without money
insert image description here

2.2 Start the installation

Also find the downloaded exe file, and then double-click to start the installation
insert image description here

Select the installation path and click Next

insert image description here
insert image description here
insert image description here
insert image description here
Waiting for a long time (probably something wrong with my network)

insert image description here
Then there will be a pycharm icon on the desktop, double-click to open

insert image description here

Then open it like this and install it

insert image description here

2.3 to create a new file test

insert image description here

Location: Python code storage path
New environment using: A new virtual environment will be created
Location: Virtual environment storage path
Base interpreter: Local Python interpreter path
lnheritglobal site-packages: Package global sharing
Make available to all projects: Provide to all projects
Previously configured interpreter: Existing configured interpreter
Interpreter: local Python interpreter path
Create a main.py welcome script: create script test

insert image description here
It is possible that no existing interpreter can be found here, I solved it like this

insert image description here

insert image description here
After solving this problem, you can start to create.
insert image description here
insert image description here
After clicking to run, you can see the result we want printed out in the following result, which is successful, Sahua~

Guess you like

Origin blog.csdn.net/weixin_62529383/article/details/130228458