Search code examples
pythoncondacartopy

Module installed but error importing cartopy


This question has been asked many times in a similar fashion, but none seem to point to a solution/answer I need. I have installed all that is needed for cartopy:

However, when I try to import the module in python:

I have installed cartopy using conda, and I will provide any other info needed to solve this issue. Thanks


Solution

  • What Operating System are you on? (I would just comment but lack the reputation).

    I just created a new conda environment (conda create -n env_name), activated it (conda activate env_name), and then just did conda install cartopy. I was then able to import it successfully in the python interpreter.

    Details

    • OS: Windows 10
    • conda: 4.7.5
    • python: 3.7.4