Ошибка на jupyter при импорте геопанд - PullRequest
0 голосов
/ 17 апреля 2020

Хотел спросить, как я могу устранить ошибку, когда я пытаюсь импортировать geo pandas на jupyter. Ниже приведено сообщение об ошибке для меня. Мой ноутбук работает на Python 3 и Windows. Заранее спасибо!

    ---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-1-fc7d1d298f0c> in <module>
----> 1 import geopandas

~\anaconda3\anaconda\lib\site-packages\geopandas\__init__.py in <module>
----> 1 from geopandas.geoseries import GeoSeries  # noqa
      2 from geopandas.geodataframe import GeoDataFrame  # noqa
      3 from geopandas.array import _points_from_xy as points_from_xy  # noqa
      4 
      5 from geopandas.io.file import read_file  # noqa

~\anaconda3\anaconda\lib\site-packages\geopandas\geoseries.py in <module>
     10 
     11 import pyproj
---> 12 from shapely.geometry.base import BaseGeometry
     13 from shapely.ops import transform
     14 

~\anaconda3\anaconda\lib\site-packages\shapely\geometry\__init__.py in <module>
      2 """
      3 
----> 4 from .base import CAP_STYLE, JOIN_STYLE
      5 from .geo import box, shape, asShape, mapping
      6 from .point import Point, asPoint

~\anaconda3\anaconda\lib\site-packages\shapely\geometry\base.py in <module>
     16 
     17 from shapely.affinity import affine_transform
---> 18 from shapely.coords import CoordinateSequence
     19 from shapely.errors import WKBReadingError, WKTReadingError
     20 from shapely.geos import WKBWriter, WKTWriter

~\anaconda3\anaconda\lib\site-packages\shapely\coords.py in <module>
      6 from ctypes import byref, c_double, c_uint
      7 
----> 8 from shapely.geos import lgeos
      9 from shapely.topology import Validating
     10 

~\anaconda3\anaconda\lib\site-packages\shapely\geos.py in <module>
    143     if os.getenv('CONDA_PREFIX', ''):
    144         # conda package.
--> 145         _lgeos = CDLL(os.path.join(sys.prefix, 'Library', 'bin', 'geos_c.dll'))
    146     else:
    147         try:

~\anaconda3\anaconda\lib\ctypes\__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error)
    362 
    363         if handle is None:
--> 364             self._handle = _dlopen(self._name, mode)
    365         else:
    366             self._handle = handle

OSError: [WinError 126] The specified module could not be found

Ошибка опубликована, и я уже использовал несколько методов, таких как загрузка файлов с этого сайта https://www.lfd.uci.edu/~gohlke/pythonlibs/#fiona, но ошибка осталась.

...