4

How to install geomeppy for windows?

Hi! I have been trying to install Geomeppy (0.4.8) for Windows. As I understand, this requires Numpy (1.14.0), Shapely (1.6.4), and Matplotlib (2.1.2). Except for Shapely, I have the rest installed. Since Shapely needs GEOS, I have that installed as well. However, Shapely installation throws an error still. I cannot make much of the error, any help will be much appreciated. Thanks!

Error Message! Collecting shapely   Using cached Shapely-1.6.4.post1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\PIYUSH\AppData\Local\Temp\pip-build-mr0av1l1\shapely\setup.py", line 80, in <module>
        from shapely._buildcfg import geos_version_string, geos_version, \
      File "C:\Users\PIYUSH\AppData\Local\Temp\pip-build-mr0av1l1\shapely\shapely\_buildcfg.py", line 200, in <module>
        lgeos = CDLL("geos_c.dll")
      File "c:\users\piyush\appdata\local\programs\python\python36-32\lib\ctypes\__init__.py", line 348, in __init__
        self._handle = _dlopen(self._name, mode)
    OSError: [WinError 126] The specified module could not be found
Piyush's avatar
55
Piyush
asked 2018-02-18 05:47:37 -0500
Jamie Bull's avatar
5.1k
Jamie Bull
updated 2018-03-14 14:18:10 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

3

The problem is you're missing the "geos_c.dll". I don't know how you're installing shapely, but this error can occur if you do pip install shapely on Windows since Windows doesn't build the Geos dll.

Try using either the Windows installer from Shapely here, or from Christophe Gohlke here.

Jamie Bull's avatar
5.1k
Jamie Bull
answered 2018-03-14 14:25:41 -0500
edit flag offensive 0 remove flag delete link

Comments

1

Thanks Jamie! Geomeppy is working now! I guess you are right about the installation command! This link is helpful for python newbies for selecting appropriate whl files installing using whl files.

Piyush's avatar Piyush (2018-04-23 08:29:02 -0500) edit

@Jamie Bull it looks like @Nimafo is having a similar issue trying to use geomeppy on Windows, they have started a new post here.

Aaron Boranian's avatar Aaron Boranian (2021-01-19 10:28:39 -0500) edit
add a comment see more comments