Home  >  Article  >  Backend Development  >  How to find the installation path of python

How to find the installation path of python

(*-*)浩
(*-*)浩Original
2019-06-29 10:51:278097browse

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 way, you can definitely find it. 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.

How to find the installation path of python

Convenient method: (Recommended learning: Python video tutorial)

Open our cmd command

Enter Python

Enter import sys

Enter print(sys.path)

The fourth one in the list will be your installation path

How to find the installation path of python

For more Python related technical articles, please visit the Python Tutorial column to learn!

The above is the detailed content of How to find the installation path of python. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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