Home > Backend Development > Python Tutorial > How to find the installation path of python on the computer

How to find the installation path of python on the computer

Release: 2019-07-05 17:31:36
Original
15484 people have browsed it

How to find the installation path of python on the computer

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

How to find the installation path of python on the computer

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!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template