Home  >  Article  >  Backend Development  >  Where is the default installation path of python?

Where is the default installation path of python?

anonymity
anonymityOriginal
2019-06-11 11:59:5081612browse

Where is the default installation path of python?

Whether it is Windows or Linux, enter python in the terminal, open python and enter the following

import sys
sys.executable

Then you can see the path information

or Directly enter

python -c "import sys; print sys.executable"

in the terminal. In win7 environment:

The default installation path of Python3.5 is the current user’s AppData\.. under

Recommended Manual: Python 3 Tutorial

For example: C:\Users\yww\AppData\Local\Programs\Python\Python36-32

One possible reason for this is

The current installation process defaults to install just for me. This will install python to the AppData folder by default. If install for all users is selected, it will be installed by default. The root directory of C drive. This is considered access control.

Recommended related articles:
1.How to check the installation path of python
2.How to change the path during python installation
Related video recommendations:
1.2019python self-study video

The above is the detailed content of Where is the default 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