Skip to content

Installing cartopy with pip fails - no cython found and is not a requirement #725

@ispmarin

Description

@ispmarin

Installing cartopy on an Ubuntu 14.04 with Python 3 using pip

pip install cartopy

I get the error

Collecting cartopy
  Using cached Cartopy-0.13.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "/tmp/pip-build-_hya0obf/cartopy/setup.py", line 36, in <module>
        from Cython.Distutils import build_ext
    ImportError: No module named 'Cython'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-_hya0obf/cartopy/setup.py", line 38, in <module>
        raise ImportError('Cython 0.15.1+ is required to install cartopy.')
    ImportError: Cython 0.15.1+ is required to install cartopy.

I have to manually install cython on the same virtualenv:

pip install cython

and after that I have to issue again the cartopy install command:

pip install cartopy

and now works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions