Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • So if you go to /usr/local/bin and /usr/bin/ ... and list python3... you will find that there is a soft link. These all python3 will link to the same binary python. Commented Mar 24, 2021 at 5:29
  • @ShivendraPratapKushwaha what do you mean by list python3 to find a soft link? Commented Mar 24, 2021 at 5:35
  • you just can do ls -ld python3 ... in /usr/local/bin and /usr/bin/ path... Commented Mar 24, 2021 at 5:38
  • @ShivendraPratapKushwaha for /usr/local/bin i get lrwxr-xr-x 1 root wheel 69 26 Jan 2020 python3 -> ../../../Library/Frameworks/Python.framework/Versions/3.8/bin/python3 and for /usr/bin/ i get -rwxr-xr-x 1 root wheel 31488 22 Sep 2020 python3 they are not the same, why? Commented Mar 24, 2021 at 5:41
  • so you have two different python3. /usr/bin is distribution managed. /usr/local/bin is not a distribution managed, but a locally package installation. It is not recommended to install your local packages in /usr/bin otherwise it some updates on distribution managed will be impacted... Now if you do echo $PATH. you will see that /usr/local/bin will come before /usr/bin.. so that you can use you local package, and if local package is not found then system will take it from /usr/local i.e. from distribution manager. Commented Mar 24, 2021 at 5:55