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:
- install binaries from https://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely
- conda install shapely pip install imgaug
ref: https://gis.stackexchange.com/questions/62925/why-is-shapely-not-installing-correctly
Issue Analytics
- State:
- Created 5 years ago
- Reactions:18
- Comments:8
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
conda install shapely pip install imgaug these solved my problem, thanks
Also solved it by direclty installing shapely from conda, without having to install any binaries beforehand.
Windows 10, Python 3.6.8