ModuleNotFoundError: No module named 'Dataset4EO'
https://github.com/EarthNets/Dataset4EO
위에 깃헙 사이트에 가서 클론하고
아래 명령어를 수행하면 된다.
python -m pip install -e .
GitHub - EarthNets/Dataset4EO: Officail Repo for the EarthNets Platform. https://ieeexplore.ieee.org/abstract/document/10731951
Officail Repo for the EarthNets Platform. https://ieeexplore.ieee.org/abstract/document/10731951 - EarthNets/Dataset4EO
github.com
위 사이트를 참고하여
1) ModuleNotFoundError: No module named 'Dataset4EO' 에러가 발생해서 해결하려고 한다.
2) Dataset4EO 데이터셋 라이브러리 설치하다가 아래와 같은 에러가 발생했다.
workspace/T3_DOFA_v1.0/pretraining/datasets# python -m pip install -e . Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com Obtaining file:///workspace/T3_DOFA_v1.0/pretraining/datasets Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [35 lines of output] /usr/local/lib/python3.10/dist-packages/setuptools/dist.py:804: SetuptoolsDeprecationWarning: Deprecated API usage. !! ******************************************************************************** As setuptools moves its configuration towards pyproject.toml, setuptools.config.parse_configuration became deprecated. For the time being, you can use the setuptools.config.setupcfg module to access a backward compatible API, but this module is provisional and might be removed in the future. To read project metadata, consider using `build.util.project_wheel_metadata (https://pypi.org/project/build/). For simple scenarios, you can also try parsing the file directly with the help of configparser.
parse_configuration( Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/workspace/T3_DOFA_v1.0/pretraining/datasets/setup.py", line 11, in <module> setup( File "/usr/local/lib/python3.10/dist-packages/setuptools/__init__.py", line 154, in setup _install_setup_requires(attrs) File "/usr/local/lib/python3.10/dist-packages/setuptools/__init__.py", line 146, in _install_setup_requires dist.parse_config_files(ignore_option_errors=True) File "/usr/local/lib/python3.10/dist-packages/setuptools/dist.py", line 804, in parse_config_files parse_configuration( File "/usr/local/lib/python3.10/dist-packages/setuptools/config/__init__.py", line 36, in _wrapper return fn(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/setuptools/config/setupcfg.py", line 190, in parse_configuration distribution._referenced_files.update( AttributeError: 'MinimalDistribution' object has no attribute '_referenced_files' [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.
1. 아래 명령어를 통해 필요한 라이브러리 설치
sh install_requirements.sh