Skip to content

Instantly share code, notes, and snippets.

@maptastik
Last active November 26, 2018 14:48
Show Gist options
  • Save maptastik/66e45796635bed1b90972f1437ad911e to your computer and use it in GitHub Desktop.
Save maptastik/66e45796635bed1b90972f1437ad911e to your computer and use it in GitHub Desktop.

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment