Where is the default installation path of python?

anonymity
Release: 2019-11-23 10:33:00
Original
81625 people have browsed it

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
Copy after login

Then you can see the path information

or Directly enter

python -c "import sys; print sys.executable"
Copy after login

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!

Related labels:
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