Could not find module (or one of its dependencies). Try using the full path with constructor syntax
Solution 1
I run into this same problem. I am using Pycharm on Windows 10 with a conda environment. I used pip to install the packages in my requirements.txt file.
I am using Shapely which depends on geos. It seems pip did not install that dependency, so what I did was to first remove Shapely with:
pip uninstall shapely
Then, I used conda to install the package (geos gets installed too), and everything works fine.
conda install shapely
I think if you use pip, you can just install geos individually if it is not installed (I did not test):
pip install geos
Solution 2
I had similar problem. I reinstalled shapely using conda.
Use the following
conda install shapely

Roger
Updated on June 13, 2022Comments
-
Roger over 1 year
When I run the command:
from shapely.geometry import LineString
I get this error:
Could not find module 'C:\Users\SWWB\Anaconda\Library\bin\geos_c.dll' (or one of its dependencies). Try using the full path with constructor syntax.
How can I solve it?