Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not able to install openvino-dev #3986

Open
scshitole opened this issue Nov 1, 2024 · 1 comment
Open

not able to install openvino-dev #3986

scshitole opened this issue Nov 1, 2024 · 1 comment

Comments

@scshitole
Copy link

sudo pip install openvino-dev
Collecting openvino-dev
Downloading openvino_dev-2024.4.0-16579-py3-none-any.whl.metadata (16 kB)
Collecting defusedxml>=0.7.1 (from openvino-dev)
Downloading defusedxml-0.7.1-py2.py3-none-any.whl.metadata (32 kB)
Collecting networkx<=3.1.0 (from openvino-dev)
Downloading networkx-3.1-py3-none-any.whl.metadata (5.3 kB)
Collecting numpy<2.0.0,>=1.16.6 (from openvino-dev)
Downloading numpy-1.26.4.tar.gz (15.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.8/15.8 MB 75.4 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
+ /usr/bin/python3 /tmp/pip-install-rphzyant/numpy_6b92072fa0614902a4b1cd00cfe4ce18/vendored-meson/meson/meson.py setup /tmp/pip-install-rphzyant/numpy_6b92072fa0614902a4b1cd00cfe4ce18 /tmp/pip-install-rphzyant/numpy_6b92072fa0614902a4b1cd00cfe4ce18/.mesonpy-wfovnvg0 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-install-rphzyant/numpy_6b92072fa0614902a4b1cd00cfe4ce18/.mesonpy-wfovnvg0/meson-python-native-file.ini
The Meson build system
Version: 1.2.99
Source dir: /tmp/pip-install-rphzyant/numpy_6b92072fa0614902a4b1cd00cfe4ce18
Build dir: /tmp/pip-install-rphzyant/numpy_6b92072fa0614902a4b1cd00cfe4ce18/.mesonpy-wfovnvg0
Build type: native build
Project name: NumPy
Project version: 1.26.4

  ../meson.build:1:0: ERROR: Unknown compiler(s): [['cc'], ['gcc'], ['clang'], ['nvc'], ['pgcc'], ['icc'], ['icx']]
  The following exception(s) were encountered:
  Running `cc --version` gave "[Errno 2] No such file or directory: 'cc'"
  Running `gcc --version` gave "[Errno 2] No such file or directory: 'gcc'"
  Running `clang --version` gave "[Errno 2] No such file or directory: 'clang'"
  Running `nvc --version` gave "[Errno 2] No such file or directory: 'nvc'"
  Running `pgcc --version` gave "[Errno 2] No such file or directory: 'pgcc'"
  Running `icc --version` gave "[Errno 2] No such file or directory: 'icc'"
  Running `icx --version` gave "[Errno 2] No such file or directory: 'icx'"
  
  A full log can be found at /tmp/pip-install-rphzyant/numpy_6b92072fa0614902a4b1cd00cfe4ce18/.mesonpy-wfovnvg0/meson-logs/meson-log.txt
  [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.
[fedora@fedora-vm-100g ~]$

@Wovchena
Copy link
Collaborator

Wovchena commented Nov 4, 2024

Numpy fails to compile itself. You can probably get the same error by just running sudo pip install numpy==1.26.4. The likely reason for the problem is old python. Note, python3.8 and older aren't supported. What python version do you use?

Your cmd prompt also states that you use Fedora. It may be that numpy doesn't provide packages for that OS. In that case you need to fix numpy compilation by providing a compiler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants