intel-extension-for-transformers
intel-extension-for-transformers copied to clipboard
Installation is broken for python3.11
ModuleNotFoundError: No module named 'cmake'
ModuleNotFoundError: No module named 'cpuinfo'
@ei-grad Could you share the cmd to install ITREX? It's great if you could provide the whole log with this error.
https://stackoverflow.com/questions/58992376/no-module-named-cmake Hi @ei-grad can you check cmake as the link above?
I have a similar issue running Windows 11, tried installing both binary and from source. System info: Windows 11 Enterprise python 3.11.7 cmake 3.27.9 pip 23.3.1
Error message (edited):
Traceback (most recent call last):
site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
It is a known problem that we cannot specify required version of torch for wheel-building so that build-time requirements must be installed manually when build from source (including the sdist, that's why the problem don't exist on Linux where we are providing wheel package).
To install the build-time requirements, try running pip install -r https://raw.githubusercontent.com/intel/intel-extension-for-transformers/main/requirements.txt
beforehand.
(And then windows will complain about the long path problem in my experience. Again it is a known problem which will be fixed after a new release of ninja). In that case, you have to build from source (in a directory with short name). e.g.:
cd "c:\"
git clone https://github.com/intel/intel-extension-for-transformers.git itrex
cd itrex
pip install -r requirements.txt
pip install -v .
Hi, I will close this issue if you don't have concerns