Download the python installation package from the official website, and you can choose to install it on the C drive or D drive or other disks during the installation process.
If you forget where to install, you can use the following command in the command line
where python
Will display the absolute path of python
C:\Users\Administrator where python
C:\Users\Administrator\AppData\Local\Programs\Python\Python37\python.exe
C:\Users\Administrator
Use python
Also open the command line and enter Python as follows
C:\Users\Administrator python
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
At this point, you have entered the interactive mode of python and you can write code.
Method extension:
Can't find python installation path solution
Solution 1: Use python command line
Solution 2: Install python again, you can see the original installation path. At the same time, configure the python environment variables
Solution three: show hidden files
So far, this article on where the python directory is after installation is introduced. For more relevant python installation content, please search for ZaLou.Cn's previous articles or continue to browse related articles below. Hope you will support ZaLou more in the future. .Cn!
Recommended Posts