У меня есть проект Colab, который использует h3pandas для полифилла, но импорт h3pandas выдает ошибку ImportError.
После добавления этих библиотек:
!pip install h3pandas
import pandas as pd
import matplotlib.pyplot as plt
import h3pandas
Я получаю следующую ошибку:
ImportError Traceback (most recent call last)
in ()
1 import pandas as pd
2 import matplotlib.pyplot as plt
----> 3 import h3pandas
1 frames
/usr/local/lib/python3.10/dist-packages/h3pandas/h3pandas.py in
9 import geopandas as gpd
10
---> 11 from h3 import h3
12 from pandas.core.frame import DataFrame
13 from geopandas.geodataframe import GeoDataFrame`
ImportError: cannot import name 'h3' from 'h3' (/usr/local/lib/python3.10/dist-packages/h3/__init__.py)
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
Подробнее здесь: https://stackoverflow.com/questions/791 ... s-in-colab
Ошибка ImportError: невозможно импортировать имя «h3» из «h3» при импорте h3pandas в Colab для полифилла. ⇐ Python
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение