I have a problem with installing magenta via pip install.
I have no idea how to continue. Do you have a solution for this? What we've found out is, that this issue is only appearing on windows but working on mac OS. my python version is 3.9.13 Thank you very much!
Here is what I get as an error:
Building wheels for collected packages: llvmlite
Building wheel for llvmlite (setup.py): started
Building wheel for llvmlite (setup.py): finished with status 'error'
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [40 lines of output]
running bdist_wheel
C:\Users\Dell\anaconda3\python.exe C:\Users\Dell\AppData\Local\Temp\pip-install-navixrdn\llvmlite_5570561b56024e2f900181b3a6a221c1\ffi\build.py
Trying generator 'Visual Studio 14 2015 Win64'
-- Selecting Windows SDK version to target Windows 10.0.19044.
CMake Error at CMakeLists.txt:3 (project):
Failed to run MSBuild command:
MSBuild.exe
to get the value of VCTargetsPath:
Das System kann die angegebene Datei nicht finden
-- Configuring incomplete, errors occurred!
See also "C:/Users/Dell/AppData/Local/Temp/tmpuyuidx7g/CMakeFiles/CMakeOutput.log".
Trying generator 'Visual Studio 15 2017 Win64'
CMake Error at CMakeLists.txt:3 (project):
Generator
Visual Studio 15 2017 Win64
could not find any instance of Visual Studio.
-- Configuring incomplete, errors occurred!
See also "C:/Users/Dell/AppData/Local/Temp/tmpemzf5k9q/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "C:\Users\Dell\AppData\Local\Temp\pip-install-navixrdn\llvmlite_5570561b56024e2f900181b3a6a221c1\ffi\build.py", line 192, in <module>
main()
File "C:\Users\Dell\AppData\Local\Temp\pip-install-navixrdn\llvmlite_5570561b56024e2f900181b3a6a221c1\ffi\build.py", line 180, in main
main_win32()
File "C:\Users\Dell\AppData\Local\Temp\pip-install-navixrdn\llvmlite_5570561b56024e2f900181b3a6a221c1\ffi\build.py", line 89, in main_win32
generator = find_win32_generator()
File "C:\Users\Dell\AppData\Local\Temp\pip-install-navixrdn\llvmlite_5570561b56024e2f900181b3a6a221c1\ffi\build.py", line 85, in find_win32_generator
raise RuntimeError("No compatible cmake generator installed on this machine")
RuntimeError: No compatible cmake generator installed on this machine
error: command 'C:\\Users\\Dell\\anaconda3\\python.exe' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for llvmlite
Running setup.py clean for llvmlite
Failed to build llvmlite
Installing collected packages: llvmlite, keras, flatbuffers, tensorflow-estimator, sox, scipy, protobuf, promise, numba, keras-preprocessing, importlib_resources, imageio, etils, absl-py, tf-slim, tensorflow-probability, sk-video, resampy, mir-eval, matplotlib, googleapis-common-protos, dm-sonnet, tensorflow-metadata, librosa, tensorflow-datasets, tensorboard, note-seq, tensorflow, magenta
Attempting uninstall: llvmlite
Found existing installation: llvmlite 0.39.1
Uninstalling llvmlite-0.39.1:
Successfully uninstalled llvmlite-0.39.1
Running setup.py install for llvmlite: started
Running setup.py install for llvmlite: finished with status 'error'
error: subprocess-exited-with-error
× Running setup.py install for llvmlite did not run successfully.
│ exit code: 1
╰─> [45 lines of output]
running install
C:\Users\Dell\anaconda3\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
got version from file C:\Users\Dell\AppData\Local\Temp\pip-install-navixrdn\llvmlite_5570561b56024e2f900181b3a6a221c1\llvmlite/_version.py {'version': '0.32.1', 'full': 'aa11b129c0b55973067422397821ae6d44fa5e70'}
running build_ext
C:\Users\Dell\anaconda3\python.exe C:\Users\Dell\AppData\Local\Temp\pip-install-navixrdn\llvmlite_5570561b56024e2f900181b3a6a221c1\ffi\build.py
Trying generator 'Visual Studio 14 2015 Win64'
-- Selecting Windows SDK version to target Windows 10.0.19044.
CMake Error at CMakeLists.txt:3 (project):
Failed to run MSBuild command:
MSBuild.exe
to get the value of VCTargetsPath:
Das System kann die angegebene Datei nicht finden
Rolling back uninstall of llvmlite
-- Configuring incomplete, errors occurred!
See also "C:/Users/Dell/AppData/Local/Temp/tmpja61gmu1/CMakeFiles/CMakeOutput.log".
Trying generator 'Visual Studio 15 2017 Win64'
CMake Error at CMakeLists.txt:3 (project):
Generator
Visual Studio 15 2017 Win64
could not find any instance of Visual Studio.
-- Configuring incomplete, errors occurred!
See also "C:/Users/Dell/AppData/Local/Temp/tmplskfqy1q/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "C:\Users\Dell\AppData\Local\Temp\pip-install-navixrdn\llvmlite_5570561b56024e2f900181b3a6a221c1\ffi\build.py", line 192, in <module>
main()
File "C:\Users\Dell\AppData\Local\Temp\pip-install-navixrdn\llvmlite_5570561b56024e2f900181b3a6a221c1\ffi\build.py", line 180, in main
main_win32()
File "C:\Users\Dell\AppData\Local\Temp\pip-install-navixrdn\llvmlite_5570561b56024e2f900181b3a6a221c1\ffi\build.py", line 89, in main_win32
generator = find_win32_generator()
File "C:\Users\Dell\AppData\Local\Temp\pip-install-navixrdn\llvmlite_5570561b56024e2f900181b3a6a221c1\ffi\build.py", line 85, in find_win32_generator
raise RuntimeError("No compatible cmake generator installed on this machine")
RuntimeError: No compatible cmake generator installed on this machine
error: command 'C:\\Users\\Dell\\anaconda3\\python.exe' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
Moving to c:\users\dell\anaconda3\lib\site-packages\llvmlite-0.39.1.dist-info\
from C:\Users\Dell\anaconda3\Lib\site-packages\~lvmlite-0.39.1.dist-info
Moving to c:\users\dell\anaconda3\lib\site-packages\llvmlite\
from C:\Users\Dell\anaconda3\Lib\site-packages\~lvmlite
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> llvmlite
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Backend QtAgg is interactive backend. Turning interactive mode on.
What I already tried and didn't work:
reinstall all 3 packages
installed the newest version of Visual Studio 2022 (17.4.3)
downgrade versions of those packages
the same with cmake and wheel package
install windows sdk
test it on another device