I believe there must be many people like me who often forget the path to Python installation. Whenever it is used, the stupidest way is to directly search for Python in the global computer. , this can definitely be found, but if your computer has a lot of files, this will be a huge job, and you will have to wait for a long time.
The convenient method is:
Open our cmd command
Enter Python
Enter import sys
Enter print(sys. path)
The fourth in the list will be your installation path
For more Python related technical articles, please visit Python Tutorial column for learning!
The above is the detailed content of How to find the installation path of python on the computer. For more information, please follow other related articles on the PHP Chinese website!