0

I am trying to import the Polygon function from shapely.geometry.polygon in pycharm, but I keep getting an error. I've tried conda-forge installing, pip installing, I've looked through a number of forums. I can't seem to get the package to read.

Any advice?

enter image description here

Binx
  • 382
  • 7
  • 22
  • Yes that does work. I ended up just needing to switch my interpreter to the correct env where I already saved the PyPi file too. – Binx Nov 23 '20 at 20:07

1 Answers1

1

The Shapely module is not correctly installed in your virtualenv.

Take a look at the available distributions in PyPi

You need to check that a Wheel (*.whl) package is available for your Python version + Windows version.

For instance, if you use Python 3.9 on Windows 64bits, you can install Shapely-1.7.1-cp39-cp39-win_amd64.whl.

You can try installing with pip:

pip install shapely
Laurent LAPORTE
  • 21,958
  • 6
  • 58
  • 103