Error: Unable to install.
Closed this issue · 5 comments
OS details: lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 23.10
Release: 23.10
Codename: mantic
Python Version: python -V
Python 3.10.14
GCC Version: which gcc | xargs file
/usr/bin/gcc: symbolic link to gcc-13
CMake version: cmake --version
cmake version 3.29.3
Error snippet: pip install .
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
...
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> neural-speed
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
@Ujjawal-K-Panchal You can install GCC and GXX to try it out
- conda install -c conda-forge gcc
- conda install -c conda-forge gxx
Thanks for the prompt response.
While, the previous error was resolved by your suggestion (thanks!); in the same installation, now I am facing a new error:
[notice] A new release of pip is available: 23.0.1 -> 24.0
[notice] To update, run: pip install --upgrade pip
--- Trying to initialize submodules
--- Submodule initialization took 0.02 sec
WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
Traceback (most recent call last):
File "/root/llm/venv/lib/python3.10/site-packages/setuptools_scm/_integration/pyproject_reading.py", line 36, in read_pyproject
section = defn.get("tool", {})[tool_name]
KeyError: 'setuptools_scm'
running install
...
<A few Tracebacks later>
DCMAKE_MAKE_PROGRAM:FILEPATH=/root/llm/venv4ipex/lib/python3.10/site-packages/ninja/data/bin/ninja -GNinja /root/llm/neural-speed
CMake Error: Error: generator : Ninja
Does not match the generator used previously: Unix Makefiles
Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.
...
<A few Tracebacks later>
ubprocess.CalledProcessError: Command '['/root/llm/venv4ipex/lib/python3.10/site-packages/cmake/data/bin/cmake', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/root/llm/neural-speed/build/lib.linux-x86_64-cpython-310/neural_speed/', '-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/root/llm/neural-speed/build/lib.linux-x86_64-cpython-310/neural_speed/', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=/root/llm/neural-speed/build/lib.linux-x86_64-cpython-310/neural_speed/', '-DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE=/root/llm/neural-speed/build/lib.linux-x86_64-cpython-310/neural_speed/', '-DPYTHON_EXECUTABLE=/root/llm/venv4ipex/bin/python', '-DCMAKE_BUILD_TYPE=Release', '-DNS_VERSION_STRING=1.0.1.dev30+g753c1585', '-DNS_WITH_AVX2=OFF', '-DNS_WITH_TESTS=OFF', '-DNS_PYTHON_API=ON', '-DNS_PROFILING=OFF', '-DCMAKE_BUILD_RPATH=$ORIGIN/', '-DCMAKE_MAKE_PROGRAM:FILEPATH=/root/llm/venv4ipex/lib/python3.10/site-packages/ninja/data/bin/ninja', '-GNinja', '/root/llm/neural-speed']' returned non-zero exit status 1
Maybe I should give up on legacy install and just use your dockerfile?
Tried to install via docker, ended up finding some small issues in docs & building. Made a small PR #264 to fix.
Tried to install via docker, ended up finding some small issues in docs & building. Made a small PR #264 to fix.
Thanks!
I was able to install on docker so I am closing the issue. Thanks for the help!