Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
4

How to install geomeppy for windows?

asked 7 years ago

Piyush's avatar

updated 7 years ago

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
Preview: (hide)

1 Answer

Sort by » oldest newest most voted
3

answered 7 years ago

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.

Preview: (hide)
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  ( 6 years ago )

@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  ( 4 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 7 years ago

Seen: 1,374 times

Last updated: Mar 14 '18