Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can pyenv coexist with standard Python 3 install?

I use pyenv to manage Python versions in Mac OSX High Sierra, works fine. A new version of an important piece of software for me, QGIS v3, requires that Python 3.6 exist on the system but looks for it only in /Library/Frameworks, which pyenv doesn't use. So the install fails.

My question is, will it blow up my Python environment installing Python outside of pyenv, with the Python.org installer?

Seems risky to try and maybe someone knows...

like image 636
kgeo Avatar asked Mar 12 '18 20:03

kgeo


1 Answers

There is no need to add an additional standard installation of Python 3.6.x just to run the QGIS 3 installer. This worked for me (adapt version number):

  1. uninstall previously installed Python 3.6.x

    pyenv uninstall 3.6.8
    
  2. reinstall with framework

    env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.6.8
    
  3. create a symlink

    sudo ln -s $(pyenv root)/versions/3.6.8/Python.framework /Library/Frameworks/Python.framework
    
like image 134
stackless Avatar answered Sep 18 '22 13:09

stackless