Search code examples
pythonmacosinstallationenvironment

Installing a second python environment I’m mac


I’m trying to figure out how to install a second python environment alongside anaconda.

On windows I can just install python in a different folder stand reference the desired python environment using env variables. I’d like to do the same on Mac. A virtual env won’t do the trick as it does not copy the standard library and other things. It needs to be a complete stand alone environment. I guess I could compile it, but is there an easier way?

Thank you very much for any input.


Solution

  • You can do that using pyenv.

    It allows you to have several python versions, and even different distributions.

    It works, mostly on user space. So, no additional requirements are needed (apart from compilation tools)