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

Installing GEOS on windows #491

Closed
LSRathore opened this issue May 13, 2020 · 4 comments
Closed

Installing GEOS on windows #491

LSRathore opened this issue May 13, 2020 · 4 comments

Comments

@LSRathore
Copy link

I am trying to install geos on windows 10 using cygwin. When make command is given, it shows:
make: *** No targets specified and no makefile found. Stop.
I am unable to install in on my system so I tried it with pip. The pip installed geos, but basemap can not find the path of 'GEOS_DIR`.
How can I download basemap?

@LSRathore
Copy link
Author

The python setup.py install for basemap gives the following error:

checking for GEOS lib in C:\Users\lsrathore ....
checking for GEOS lib in C:\Users\lsrathore\local ....
checking for GEOS lib in /usr ....
checking for GEOS lib in /usr/local ....
checking for GEOS lib in /sw ....
checking for GEOS lib in /opt ....
checking for GEOS lib in /opt/local ....

Can't find geos library in standard locations ('C:\Users\lsrathore', 'C:\Users\lsrathore\local', '/usr', '/usr/local', '/sw', '/opt', '/opt/local').
Please install the corresponding packages using your
systems software management system (e.g. for Debian Linux do:
'apt-get install libgeos-3.3.3 libgeos-c1 libgeos-dev' and/or
set the environment variable GEOS_DIR to point to the location
where geos is installed (for example, if geos_c.h
is in /usr/local/include, and libgeos_c is in /usr/local/lib,
set GEOS_DIR to /usr/local), or edit the setup.py script
manually and set the variable GEOS_dir (right after the line
that says "set GEOS_dir manually here".

@joernu76
Copy link
Contributor

joernu76 commented Aug 3, 2020

I would recommend using anaconda to use basemap under windows using conda-forge. That should settle a lot of problems (basemap does not work with the most recent matplotlib version, see issue 495, installing a slightly older one should work, though).

@molinav
Copy link
Member

molinav commented Dec 21, 2020

If you want to work with a direct installation of Python without Anaconda under Windows, you may also use the wheel files generated by C. Gohlke available in https://www.lfd.uci.edu/~gohlke/pythonlibs/#basemap since they already provide the GEOS DLL for Windows. You can install them with pip by passing the direct path to the downloaded wheel file.

In the mid term I would like to upload such kind of wheels to PyPI, but I am currently doing a bit of refactoring first.

@molinav
Copy link
Member

molinav commented Dec 29, 2021

Finally (after one year!) we have precompiled binary wheels for Windows and GNU/Linux which can be installed with pip:

python -m pip install basemap

I am closing this issue now. Feel free to open a new issue if there are still problems with getting basemap work on Windows.

@molinav molinav closed this as completed Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants