3

I am trying to install QGIS3 via Kyngchaos installer. But as I install python 3.6 in anaconda, the installer cannot find it. I know I can install a new environment or use symlinks to connected to Python that installed by homebrew as suggested in Installing QGIS3 on Mac? But as I have already installed a lot of packages in anaconda environment, I still hope to connect QGIS libs to it. Is it possible to do that?

Python 3.6 is installed in /Users/.../anaconda3/bin

2
  • The KyngChaos packages specifically say they are only compatible with Python.org python, not Anaconda/Homebrew/MacPorts/etc... Conda-forge are trying to package QGIS for anaconda.There is a test build you can try by conda-forge contributor gillins, try conda install -c gillins qgis or to avoid issues conda create mynewenv -c gillins qgis
    – user2856
    Commented Apr 28, 2018 at 7:59
  • which python3.6.? did you use for standard python
    – GiS4SDG14
    Commented Sep 15, 2018 at 16:25

2 Answers 2

3

I would like to share my experiment though I still failed to install it.

It seems in my case that The python path should be /Library/Frameworks/Python.framework/Versions/3.6/bin. I try to create a symlink like ln -s /anaconda3/bin /Library/Frameworks/Python.framework/Versions/3.6/bin and then I can 'successfully' install QGIS3.

However when I open QGIS3 that I have installed. It crushed suddenly when loading the software without any dialog box showing any errors or warnings.

I am still wondering whether there are some libraries that I should install besides GDAL and what's the reason for its crush.

5
  • 1
    It might be worth trying to link the actual Python.framework locations - e.g. QGIS3 looks for python at /Library/Frameworks/Python.framework. Next thing to confirm is whether you install the KyngChaos GDAL after (as opposed to before) linking the python location? Lastly, install pygments, owslib, and jinja2 in your anaconda environment and see if that helps. Do the crash logs provide any clues as to specific missing packages?
    – songololo
    Commented Mar 28, 2018 at 8:54
  • Thank you for your reply. I have checked the path and install pygments, owslib, and jinja2 but it still crushed after checking provider plugins without showing any dialog boxes.
    – natsuapo
    Commented Mar 29, 2018 at 10:26
  • 1
    There might be some underlying conflict between Anaconda versions of gdal and related packages and those provided by KyngChaos.
    – songololo
    Commented Mar 29, 2018 at 13:48
  • I simply installed Python 3.6 via the python installer and didn't set any environment variables. The QGIS install worked without changing my default Python package (i.e. launching python from terminal launches Anaconda).
    – FrodmanG
    Commented May 27, 2018 at 8:13
  • This didn't work for me. I tried ln -s /Users/sergio/anaconda3/bin /Library/Frameworks/Python.framework/Versions/3.6/bin and QGIS won't find Python 3.6...
    – srodriguex
    Commented Jan 23, 2019 at 20:41
0

Just download python from https://www.python.org/downloads/ and reinstall python 3 again. It works for me!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.