question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error while installing imaug due to Shapely package

See original GitHub issue

🐛 Installation error

Collecting Shapely (from imgaug)
  Using cached https://files.pythonhosted.org/packages/a2/fb/7a7af9ef7a35d16fa23b127abee272cfc483ca89029b73e92e93cdf36e6b/Shapely-1.6.4.post2.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\ADMINI~1\AppData\Local\Temp\pip-install-kdsk2c_6\Shapely\setup.py", line 80, in <module>
        from shapely._buildcfg import geos_version_string, geos_version, \
      File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-kdsk2c_6\Shapely\shapely\_buildcfg.py", line 200, in <module>
        lgeos = CDLL("geos_c.dll")
      File "C:\ProgramData\Anaconda3\envs\pytorch04_py36\lib\ctypes\__init__.py", line 348, in __init__
        self._handle = _dlopen(self._name, mode)
    OSError: [WinError 126] The specified module could not be found

Windows Server 2016 python 3.6.6 albumentations version 0.1.8

Steps to reproduce the behavior: pip install imgaug (or pip install albumentations )

The error is probably due to missing C compiler required for building the dll. Workaround:

  1. install binaries from https://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely
  2. conda install shapely pip install imgaug

ref: https://gis.stackexchange.com/questions/62925/why-is-shapely-not-installing-correctly

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:18
  • Comments:8

github_iconTop GitHub Comments

12reactions
etatbakcommented, Apr 10, 2019

conda install shapely pip install imgaug these solved my problem, thanks

2reactions
ThomVettcommented, Mar 13, 2019

Also solved it by direclty installing shapely from conda, without having to install any binaries beforehand.

Windows 10, Python 3.6.8

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error installing Shapely package using pip command
Got the solution on an issue of the shapely project on github https://github.com/Toblerity/Shapely/issues/738.
Read more >
When is install imgaug.py i get this error - Stack Overflow
The specified module could not be found means that you didn't install some required packages. I guess you're missing Shapely which is a ......
Read more >
Issue installing ImagePy via pip on Windows10
Hello, I created a fresh anaconda environment (Python 3.7.2). Then I tried installing ImagePy from pip, as found on PyPi I ran into...
Read more >
Installation — cartopy 0.21.0 documentation - SciTools
The easiest way to install Cartopy is by using Conda. ... to access its basic functionality, it will be necessary to first install...
Read more >
Python Extension Packages for Windows - Christoph Gohlke
Install numpy+mkl before other packages that depend on it. ... python-lzf; pillow; numpy-stl; shapely; discretize; ruamel.yaml; simplejson ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found