maptastik
1/20/2018 - 4:56 AM

QGIS 2.x Python and metasearch issue

I installed QGIS (KyngChaos) after installing Miniconda. When I would open QGIS, I'd get an error about MetaSearch not started because requests couldn't be found. How I got things working again

Alias system Python 2.7 (This may be optional)

sudo alias python2=/usr/bin/python2.7

Get a copy of get-pip.py and use it to install pip

sudo /usr/bin/python2.7 /Users/maptastik/get-pip.py

Install requests

sudo /usr/bin/python2.7 -m pip install requests

After reloading I got an error that jinja2 couldn't be found. So I installed jinja2

sudo /usr/bin/python2.7 -m pip install jinja2

I reloaded QGIS again and got another error about pygments being missing, so I installed pygments.

sudo /usr/bin/python2.7 -m pip install pygments

This time when I re-installed, no errors!