Bachalo
Bachalo

Reputation: 7219

Mutliple Python installs necessary?

So I've read this thread python location on mac osx

but still a couple questions

running

$ which -a python python3

returns

/Library/Frameworks/Python.framework/Versions/2.7/bin/python
/usr/local/bin/python
/usr/bin/python

and just

$which python

returns

/Library/Frameworks/Python.framework/Versions/2.7/bin/python

And I also have Python installed here which isn't on my PATH

/Users/foo/Library/Python/2.7/bin

Does this mean I can safely delete ALL python binaries except for the one returned by the which Python command? I just don't understand the necessity of multiple Python installs if you don't need multiple versions.

Upvotes: 1

Views: 66

Answers (1)

c0x6a
c0x6a

Reputation: 437

Do not delete the default python installation that comes with the OS, you will break your system, that Pythons are necessary for the right functionality of the OS, don't mess with them, if you want to develop your own projects, better use pyenv (https://github.com/pyenv/pyenv) or similar tools to manage independent Python installations and/or versions, also to manage a virtual environment.

Never touch pre-installed binaries, unless you want to break your system.

Upvotes: 2

Related Questions