Recently I need to install python on a new computer and record the installation process.
- Go to the official website of python to download: https://www.python.org/Choose
the system to download, here is Windows
- Then select the latest Release version and click in
- Then slide to the bottom and choose the one that suits your system. Mine is 64-bit.
- After downloading, click Run
- Then choose where to install it.
I performed a custom installation and installed python to the D drive instead of the default C drive. - Then go to this page, it is recommended to check all
- Select a custom installation directory, I put it on the D drive
- Just click Install
and then check whether the installation is successful. Win+R and enter cmd to open the command prompt
and then enter python to see if there is a prompt
for version information. If there is version information, it means the installation is successful!
You can enter print("hello") to see if the output will run normally.
If not, it may be because the environment variables are not configured properly. (Because you can see that the command prompt of the personal user cy is currently open)
Let’s take a look at my cy environment variable configuration:
Then that’s it!
For the installation of PyCharm, you can refer to my article: PyCharm installation tutorial, detailed for beginners