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

How to install geomeppy for windows?

asked 2018-02-18 05:47:37 -0500

Piyush gravatar image

updated 2018-03-14 14:18:10 -0500

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
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2018-03-14 14:25:41 -0500

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.

edit flag offensive delete link more

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 gravatar imagePiyush ( 2018-04-23 08:29:02 -0500 )edit

Your Answer

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

Add Answer

 

Question Tools

1 follower

Stats

Asked: 2018-02-18 05:47:37 -0500

Seen: 375 times

Last updated: Mar 14 '18