Newer version of Mac OS (OSX) already had Python 2.x pre installed. However, as of 2018/09/16 the latest version is Python 3.7. I decided to use Anaconda to install Python. It turned out to be a mess, and I could not even in stall QGIS version 3 because it kept complaining that Python 3.x is required.
After spending almost a day searching and with trial by errors, I found a better and quick way to install latest version of Python and QGIS by using Home Brew. I also provide the useful links at the bottom of this post that you can read further to understand the details.
If you run into any errors during the installation of the command lines below, follow the suggestions that provide with the errors to fix the issues and you are good. I found most of the Mac installer programs are very good at detecting other missing libraries or packages required to complete the installation. Good luck!
- Run your terminal the type the following commands to intall python & pip:
- if pip is not installed yet, run the command line below:
- Now, install QGIS (same terminal window)
- Finally, type “qgis3” without quotes in the terminal to launch
brew install python
pip3 install –upgrade pip setup tools wheel
sudo easy_install pip
"Then re-link python:"
brew unlink python && brew link python
brew tap osgeo/osgeo4mac
brew install osgeo/osgeo4mac
You can then pin the dock menu icon to simplify launching in future.
Helpful links that I followed to successfully install Python, PIP, and QGIS
https://www.makeuseof.com/tag/install-pip-for-python/
https://gis.stackexchange.com/questions/274381/installing-qgis3-on-mac
Leave a Reply