1

Matplotlib basemap is deprecated in favor of Cartopy - however, it seems that to install cartopy only the Anaconda package manager can handle dependencies. I am following the instructions to install via pip as it seems I had an old version of proj. But it fails to brew the installation to run with Python 3.8 and Matplotlib 3.3.3. Anyone using this set up? Or is it better to downgrade? Which versions are stable? Or shall one stick to Anaconda?

The error I get is 'proj_api.h' file not found, same as this one, for another tool. This question does not solve my problem.

braulio
  • 543
  • 2
  • 13

1 Answers1

0

Downgrading to proj<=8 as suggested here worked out. I already had brewed proj, and the other dependencies not handles by pip, thus the steps I took are

brew uninstall proj
brew install proj@7

Then adopted the suggestions from brew to make sure compiler and pip can find proj, then run pip install cartopy

braulio
  • 543
  • 2
  • 13