Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pip install fails on Google Colaboratory #1346

Closed
rutgerhofste opened this issue Jul 24, 2019 · 3 comments
Closed

Pip install fails on Google Colaboratory #1346

rutgerhofste opened this issue Jul 24, 2019 · 3 comments

Comments

@rutgerhofste
Copy link

rutgerhofste commented Jul 24, 2019

Description

Installing cartopy 0.17 fails on Google Colaboratory

!pip install Cartopy==0.17.0

Collecting Cartopy==0.17.0
  Using cached https://files.pythonhosted.org/packages/e5/92/fe8838fa8158931906dfc4f16c5c1436b3dd2daf83592645b179581403ad/Cartopy-0.17.0.tar.gz
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
ERROR: Command "/usr/bin/python3 /usr/local/lib/python3.6/dist-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp3f2vj7z1" failed with error code 1 in /tmp/pip-install-oa06ww6s/Cartopy 

Code to reproduce

!pip install Cartopy==0.17.0

https://colab.research.google.com/drive/1yKFEVZ2ZPrhJRwv0FewRIwhhfAbDw0bS

Traceback

Collecting Cartopy==0.17.0
  Using cached https://files.pythonhosted.org/packages/e5/92/fe8838fa8158931906dfc4f16c5c1436b3dd2daf83592645b179581403ad/Cartopy-0.17.0.tar.gz
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
ERROR: Command "/usr/bin/python3 /usr/local/lib/python3.6/dist-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp3f2vj7z1" failed with error code 1 in /tmp/pip-install-oa06ww6s/Cartopy 
Full environment definition

Operating system

Google Colab running Python 3.6.8
Linux b6210b371490 4.14.79+ #1 SMP Wed Dec 19 21:19:13 PST 2018 x86_64 x86_64 x86_64 GNU/Linux

Cartopy version

0.17.0 (latest)

conda list

pip list

@mmc7676
Copy link

mmc7676 commented Sep 22, 2019

Was this ever resolved? I have the same issue then am offered to insert

!apt-get -qq install python-cartopy python3-cartopy
import cartopy

This installs the library, but the gui does not populate images.

When I try to bring in

pip install Cartopy==0.17.0

in a regular Jupyter Notebook, this is the error

ERROR: setup.py:171: UserWarning: Unable to determine GEOS version. Ensure you have 3.3.3 or later installed, or installation may fail.
'.'.join(str(v) for v in GEOS_MIN_VERSION), ))
Proj 4.9.0 must be installed

Thanks

@dopplershift
Copy link
Contributor

I'm not sure what the listed dependencies are for python3-cartopy. What that error message indicates is that it's not finding Proj.4, so you need to install the system package for that, which may solve it. You might also check the Proj Installation Guide.

@QuLogic
Copy link
Member

QuLogic commented Nov 26, 2019

To install in Colab on Ubuntu using pip, you need to install the library dependencies:

!apt-get install -qq libgdal-dev libproj-dev

Then !pip install cartopy works.

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

No branches or pull requests

4 participants