Please I’m trying to intsall a python library “landsat-util” and it’s not working, what could be the problem… find below the error message that pops up when i run the command”pip install landsat-util”:
Preparing metadata (setup.py) … error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
Traceback (most recent call last):
File “”, line 2, in
File “”, line 34, in
File “C:UserssamAppDataLocalTemppip-install-9r91dih_scipy_45002029040641afb2d0203fcdf531ecsetup.py”, line 265, in
setup_package()
File “C:UserssamAppDataLocalTemppip-install-9r91dih_scipy_45002029040641afb2d0203fcdf531ecsetup.py”, line 193, in setup_package
write_version_py()
File “C:UserssamAppDataLocalTemppip-install-9r91dih_scipy_45002029040641afb2d0203fcdf531ecsetup.py”, line 136, in write_version_py
FULLVERSION, GIT_REVISION = get_version_info()
^^^^^^^^^^^^^^^^^^
File “C:UserssamAppDataLocalTemppip-install-9r91dih_scipy_45002029040641afb2d0203fcdf531ecsetup.py”, line 112, in get_version_info
import imp
ModuleNotFoundError: No module named ‘imp’
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
I tried to Update Pip and Setuptools by running the follwoing code one at a time
- python -m pip install –upgrade pip setuptools
- python -m pip install –upgrade –force-reinstall –no-cache-dir numpy
afterwhich i retiried the “pip install landsat-util”,yet, the error persisted
user81148 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.