When trying to install the 'shapely' Python package, on VS 2017 15.6.6, Windows 7 64b, I get this error message
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\lib\ctypes\__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found
I believe, I have the same problem than here
The accepted solution on that question advices to run this
python -m pip install Shapely-1.5.17-cp36-cp36m-win_amd64.whl
But that shapely package here has changed to
Shapely, a package for creation, manipulation, and analysis of planar geometry objects based on GEOS.
Shapely‑1.6.4.post1‑cp27‑cp27m‑win32.whl
Shapely‑1.6.4.post1‑cp27‑cp27m‑win_amd64.whl
Shapely‑1.6.4.post1‑cp34‑cp34m‑win32.whl
Shapely‑1.6.4.post1‑cp34‑cp34m‑win_amd64.whl
Shapely‑1.6.4.post1‑cp35‑cp35m‑win32.whl
Shapely‑1.6.4.post1‑cp35‑cp35m‑win_amd64.whl
Shapely‑1.6.4.post1‑cp36‑cp36m‑win32.whl
Shapely‑1.6.4.post1‑cp36‑cp36m‑win_amd64.whl
Shapely‑1.6.4.post1‑cp37‑cp37m‑win32.whl
Shapely‑1.6.4.post1‑cp37‑cp37m‑win_amd64.whl
The questions are:
Which one of those strings do I need to use in the command?
Since I already clicked on
1.6.4.post1
Should I try to install an older version, supposedly Shapely-1.5.17
?
My guess is that something is wrong with shapely and it's only available in conda environments and not in PyPI. Visual Studio however has to be made aware of conda before it can install shapely: Visual Studio is using "pip install shapely" when what you want is "conda install shapely". Here's how I solved the problem.