Closed ProfLeao closed 3 months ago
@BAFurtado , could you please have a quick look at this?
There's probably a version incompatibility. I would try a new env from scratch including at once all necessary packages.
Something like:
conda create -n my_new_env geobr ... geoandas... shapely ... whatever
Do not state specific version numbers and let conda decide on the latest possible.
Or the equivalent in pip.
Specifically, shapely, gdal and geopandas are tricky to install. So the best way is to do it together using conda
Other pythonists nowadays use poetry
and other env managers. Conda has worked fine for me.
The error you're encountering seems to be related to a compatibility or dependency issue. I just installed geobr without any problem. You might want to try creating a new environment to test it. This approach often resolves conflicts and issues related to specific package installations.
I tried it a few times, but the problem still persists in Win11.
This seems to be an issue in your pip version. Due to the removal of the long-deprecated pkgutil.ImpImporter class, the pip command may not work for Python 3.12 or newer versions.
To fix this issue you can follow this steps:
cd
into the package directory;python setup.py install
for windows or sudo python setup.py install
for ubuntu;
note: you may need administrator privileges for the 4th stepPlease try this solution and tell me how it goes : )
I just updated the package dependencies (PR #341).
All issues related to dependencies and installation should be solved with it.
Try pip install geobr -U
to try the new version and let me know how it goes.
When I try to install the package with pip in SO Windows, I get the followingoutput.
Can anyone help me?