intel-extension-for-transformers icon indicating copy to clipboard operation
intel-extension-for-transformers copied to clipboard

Cant even install this thing - error during pip installation

Open PedzacyKapec opened this issue 1 year ago • 4 comments
trafficstars

When pip installing this is what i get:

Collecting intel-extension-for-transformers Using cached intel-extension-for-transformers-1.2.1.tar.gz (88.4 MB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [6 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in
File "C:\Users\WORKSTATION\AppData\Local\Temp\pip-install-wycighm3\intel-extension-for-transformers_ce809ed1ec2d4a63834d87068def41c5\setup.py", line 27, in from cpuinfo import get_cpu_info ModuleNotFoundError: No module named 'cpuinfo' [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.

PedzacyKapec avatar Nov 24 '23 09:11 PedzacyKapec

Could you try pip install py-cpuinfo

Dizro avatar Nov 25 '23 11:11 Dizro

Could you try pip install py-cpuinfo

Yes. Installed succesfully. Then when i tried to install it again i got an error again: [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for intel-extension-for-transformers Running setup.py clean for intel-extension-for-transformers Failed to build intel-extension-for-transformers ERROR: Could not build wheels for intel-extension-for-transformers, which is required to install pyproject.toml-based projects

PedzacyKapec avatar Nov 25 '23 11:11 PedzacyKapec

Could you try pip install py-cpuinfo

Yes. Installed succesfully. Then when i tried to install it again i got an error again: [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for intel-extension-for-transformers Running setup.py clean for intel-extension-for-transformers Failed to build intel-extension-for-transformers ERROR: Could not build wheels for intel-extension-for-transformers, which is required to install pyproject.toml-based projects

I guess you are using Windows 10 or higher to download. I also got this error. Updating the pip\wheel\setuptools tool has no effect. I switched the system to Ubuntu 20.04 and this problem was solved. Or you can try to install WSL2 on Windows to solve the problem.

XiaoyongW avatar Dec 03 '23 07:12 XiaoyongW

Hi, I will close this issue if you don't have concerns

kevinintel avatar Jan 24 '24 12:01 kevinintel