Which folder is python in in linux?

WBOY
Release: 2023-04-30 20:58:12
forward
3918 people have browsed it

Python is in the lib folder of Linux. The specific location of python2 that comes with Linux is "/usr/local/lib/python2.7", and the location of python3 downloaded by apt It's "/usr/local/lib/python3.6".

First of all, where is python installed on mac

  • The location of python that comes with Mac:

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
Copy after login

Soft link location:

<code><div class="code" style="position:relative; padding:0px; margin:0px;"><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:php;toolbar:false">/usr/lib/python2.7</pre><div class="contentsignin">Copy after login</div></div><div class="contentsignin">Copy after login</div></div>

  • ##linux python location

linux comes with python2 location:

/usr/local/lib/python2.7
Copy after login

linux soft link location:

<code><div class="code" style="position:relative; padding:0px; margin:0px;"><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:php;toolbar:false">/usr/lib/python2.7</pre><div class="contentsignin">Copy after login</div></div><div class="contentsignin">Copy after login</div></div>

apt downloaded python3 location :

/usr/local/lib/python3.6
Copy after login

The above is the detailed content of Which folder is python in in linux?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
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