I'm trying to use shapely.geometry, but it seems to be missing in the module.
This works:
import shapely
but this fails:
from shapely import geometry
In particular, when I try to use shapely.geometry
, it fails with message:
AttributeError: module 'shapely' has no attribute 'geometry'
Does anyone know why geometry
is missing? The manual says it should exist (and the project I'm testing assumes it exists).
I'm using Shapely version 1.7.1, and Python 3.6.5, on Windows 10.
I downloaded shapely using the .whl file and issue didn't appear.
First download it from https://pypi.org/project/Shapely/#files
Then uninstall shapely with pip uninstall shapely
and re-install with pip install FULL_PATH_OF_WHL_FILE
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.