Can pyenv coexist with standard Python 3 install? Can pyenv coexist with standard Python 3 install? python-3.x python-3.x

Can pyenv coexist with standard Python 3 install?


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


I do use pyenv at the system level and virtualenv for all development work. The question was specific to QGIS 3, which looks for Python 3.6 in a specific location on the filesystem, under Library/Frameworks and apparently ignores the environment. Bottom line: a 'standard' install of a Python 3 pkg from the Python site did the trick.