eliberis / tflite-tools

TFLite model analyzer & memory optimizer
MIT License
120 stars 20 forks source link

installation failure on Ubuntu 20.04 with Python 3.11 #11

Open andy-tai opened 3 months ago

andy-tai commented 3 months ago

On Ubuntu 20.04, with Python 3.11, installation command

pipenv install

fails with

pipenv.exceptions.InstallError: Collecting scikit-learn==0.20.4 (from -r /tmp/pipenv-ikw3gac7-requirements/pipenv-6xx6neu7-hashed-reqs.txt (line 12)) pipenv.exceptions.InstallError: Downloading scikit-learn-0.20.4.tar.gz (11.7 MB) pipenv.exceptions.InstallError: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.7/11.7 MB 11.7 MB/s eta 0:00:00 pipenv.exceptions.InstallError: Installing build dependencies: started pipenv.exceptions.InstallError: Installing build dependencies: finished with status 'done' pipenv.exceptions.InstallError: Getting requirements to build wheel: started pipenv.exceptions.InstallError: Getting requirements to build wheel: finished with status 'done' pipenv.exceptions.InstallError: Preparing metadata (pyproject.toml): started pipenv.exceptions.InstallError: Preparing metadata (pyproject.toml): finished with status 'error' pipenv.exceptions.InstallError: error: subprocess-exited-with-error pipenv.exceptions.InstallError:
pipenv.exceptions.InstallError: × Preparing metadata (pyproject.toml) did not run successfully. pipenv.exceptions.InstallError: │ exit code: 1 pipenv.exceptions.InstallError: ╰─> 24 lines of output: :12: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html pipenv.exceptions.InstallError: Partial import of sklearn during the build process. pipenv.exceptions.InstallError: Traceback (most recent call last): pipenv.exceptions.InstallError: File "", line 153, in get_numpy_status pipenv.exceptions.InstallError: ModuleNotFoundError: No module named 'numpy' pipenv.exceptions.InstallError: Traceback (most recent call last): pipenv.exceptions.InstallError: File "/share/software/tflite-tools/venv/lib/python3.8/site-packages/pipenv/patched/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in

pipenv.exceptions.InstallError: File "/share/software/tflite-tools/venv/lib/python3.8/site-packages/pipenv/patched/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main pipenv.exceptions.InstallError: json_out['return_val'] = hook(**hook_input['kwargs']) pipenv.exceptions.InstallError: File "/share/software/tflite-tools/venv/lib/python3.8/site-packages/pipenv/patched/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel pipenv.exceptions.InstallError: return hook(metadata_directory, config_settings) pipenv.exceptions.InstallError: File "/tmp/pip-build-env-m_iz58jp/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 368, in prepare_metadata_for_build_wheel

pipenv.exceptions.InstallError: File "/tmp/pip-build-env-m_iz58jp/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 497, in run_setup

pipenv.exceptions.InstallError: File "/tmp/pip-build-env-m_iz58jp/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 313, in run_setup pipenv.exceptions.InstallError: exec(code, locals()) pipenv.exceptions.InstallError: File "", line 250, in pipenv.exceptions.InstallError: File "", line 238, in setup_package pipenv.exceptions.InstallError: ImportError: Numerical Python (NumPy) is not installed. pipenv.exceptions.InstallError: scikit-learn requires NumPy >= 1.8.2. pipenv.exceptions.InstallError: Installation instructions are available on the scikit-learn website: http://scikit-learn.org/stable/install.html pipenv.exceptions.InstallError:
pipenv.exceptions.InstallError: end of output:
pipenv.exceptions.InstallError: note: This error originates from a subprocess, and is likely not a problem with pip. pipenv.exceptions.InstallError: error: metadata-generation-failed pipenv.exceptions.InstallError: pipenv.exceptions.InstallError: × Encountered error while generating package metadata. pipenv.exceptions.InstallError: ╰─> See above for output. pipenv.exceptions.InstallError: pipenv.exceptions.InstallError: note: This is an issue with the package mentioned above, not pip. pipenv.exceptions.InstallError: hint: See above for details. ERROR: Couldn't install package: {}