5

I want to install Cartopy on Windows, which has some dependencies according to http://scitools.org.uk/cartopy/docs/latest/installing.html#installing. When using pip install cartopy in the cmd prompt, it gives an error where it wants me to install GEOS 3.3.3 and Proj4 4.9.0.

I've downloaded geos-3.6.2.tar.bz2, but I cannot figure out how to install it. I've extracted the files, used cd to the right directory.

What can I do to install it correctly? Is there an easy way to install Cartopy?

Flimzy
  • 68,325
  • 15
  • 126
  • 165
A T
  • 281
  • 3
  • 11
  • *"it gives me an error"*; which error? Installing GEOS manually shouldn't be necessary (and is probably not the best idea....) – Bart Apr 24 '18 at 15:59
  • C:\Users\Me>pip install cartopy Collecting cartopy Using cached https://files.pythonhosted.org/packages/f5/7a/4a16db7c81f11b3c5889c5b913d9a5724c704a6947c5a87ec59c4a8985ac/Cartopy-0.16.0.tar.gz Complete output from command python setup.py egg_info: C:\Users\Me\AppData\Local\Temp\pip-install-5is6l5ec\cartopy\setup.py:178: 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), )) Proj4 4.9.0 must be installed. – A T Apr 25 '18 at 12:02

4 Answers4

3

Do you have Anaconda?

try:

conda install -c scitools cartopy

Cœur
  • 34,719
  • 24
  • 185
  • 251
Itamar
  • 66
  • 4
  • It worked! Is there any way I could know this, or is this from experience? – A T Apr 25 '18 at 12:01
  • 2
    I would suggest using the conda-forge channel, the scitools channel is out-of date and no longer maintained: `conda install -c conda-forge cartopy`. http://scitools.org.uk/cartopy/docs/latest/installing.html#installing – ajdawson Apr 26 '18 at 17:54
1

If you are on Windows and you have installed Anaconda, on your search, type "Anaconda prompt" and then type this command

conda install -c conda-forge cartopy
Kimanthi K.
  • 337
  • 3
  • 10
0

I tried conda install -c conda-forge cartopy

and tried installing it through Anaconda navigator 1.9.12 and I scoured multitude of ways and tried them all and failed. Only this

conda install -c scitools cartopy

works.

I first ran this conda update -n base -c defaults condo following instructions provided among responses here:Updating Anaconda fails: Environment Not Writable Error

0

When you are installing through pip then better install using Binary file .Whl extension file You can find all the package binary file below. Especially in case of Cartopy installation through pip, install cartopy using binary wheel file.

https://www.lfd.uci.edu/~gohlke/pythonlibs/

sameer_nubia
  • 601
  • 6
  • 8