building wheels for various packages not working - python

I receive various error when trying to install magenta with pip
i get an error for building wheels for numba, llvmlite and python-rtmidi
example for numba:
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-39
creating build\lib.win-amd64-cpython-39\rtmidi
copying rtmidi\midiconstants.py -> build\lib.win-amd64-cpython-39\rtmidi
copying rtmidi\midiutil.py -> build\lib.win-amd64-cpython-39\rtmidi
copying rtmidi\release.py -> build\lib.win-amd64-cpython-39\rtmidi
copying rtmidi\__init__.py -> build\lib.win-amd64-cpython-39\rtmidi
running build_ext
building 'rtmidi._rtmidi' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for python-rtmidi
Running setup.py clean for python-rtmidi
Building wheel for llvmlite (setup.py) ... 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-f301n_gf\llvmlite_52e74a978a1540339621403e230729a1\ffi\build.py
-- 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/tmpjza6m78t/CMakeFiles/CMakeOutput.log".
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/tmp0ap85972/CMakeFiles/CMakeOutput.log".
Trying generator 'Visual Studio 14 2015 Win64'
Trying generator 'Visual Studio 15 2017 Win64'
Traceback (most recent call last):
File "C:\Users\Dell\AppData\Local\Temp\pip-install-f301n_gf\llvmlite_52e74a978a1540339621403e230729a1\ffi\build.py", line 192, in <module>
main()
File "C:\Users\Dell\AppData\Local\Temp\pip-install-f301n_gf\llvmlite_52e74a978a1540339621403e230729a1\ffi\build.py", line 180, in main
main_win32()
File "C:\Users\Dell\AppData\Local\Temp\pip-install-f301n_gf\llvmlite_52e74a978a1540339621403e230729a1\ffi\build.py", line 89, in main_win32
generator = find_win32_generator()
File "C:\Users\Dell\AppData\Local\Temp\pip-install-f301n_gf\llvmlite_52e74a978a1540339621403e230729a1\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 numba python-rtmidi llvmlite
Installing collected packages: python-rtmidi, pygtrie, mido, 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
Running setup.py install for python-rtmidi ... error
error: subprocess-exited-with-error
× Running setup.py install for python-rtmidi did not run successfully.
│ exit code: 1
╰─> [15 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
running build_py
creating build
creating build\lib.win-amd64-cpython-39
creating build\lib.win-amd64-cpython-39\rtmidi
copying rtmidi\midiconstants.py -> build\lib.win-amd64-cpython-39\rtmidi
copying rtmidi\midiutil.py -> build\lib.win-amd64-cpython-39\rtmidi
copying rtmidi\release.py -> build\lib.win-amd64-cpython-39\rtmidi
copying rtmidi\__init__.py -> build\lib.win-amd64-cpython-39\rtmidi
running build_ext
building 'rtmidi._rtmidi' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
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.
╰─> python-rtmidi
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
what I already tried:
reinstall all 3 packages
downgrade versions of those packages
the same with cmake and wheel package
install windows sdk
test it on another device
I have no idea how to continue. Do you have a solution for this?
my python version is 3.9.13
Thank you very much!
tried to install magenta but receive errors

Related

pip install web3 in python did not run successfully

I want to install the web3py library to deploy a smart contract in blockchain and I'm faced with this issue. How can I fix it?
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
?─> [5 lines of output]
running bdist_wheel
running build
running build_ext
building 'lru' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for lru-dict
Running setup.py clean for lru-dict
Failed to build lru-dict
Installing collected packages: lru-dict, bitarray, websockets, toolz, six, pyrsistent, pycryptodome, protobuf, multidict, hexbytes, frozenlist, eth-typing, eth-hash, charset-normalizer, base58, attrs, async-timeout, yarl, parsimonious, multiaddr, jsonschema, cytoolz, aiosignal, ipfshttpclient, eth-utils, aiohttp, rlp, eth-keys, eth-abi, eth-rlp, eth-keyfile, eth-account, web3
Running setup.py install for lru-dict ... error
error: subprocess-exited-with-error
× Running setup.py install for lru-dict did not run successfully.
│ exit code: 1
?─> [7 lines of output]
running install
C:\Users\Computer\AppData\Local\Programs\Python\Python311\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
running build_ext
building 'lru' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
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.
?─> lru-dict
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
It Was Not Working With python 3.11 but its working with python3.9 where i use python 3.9.6 check with that. It Works perfect

python 3.9 magenta not working on Windows

I receive various error when trying to install magenta with pip
i get an error for building wheels for numba, llvmlite and python-rtmidi example for numba:
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-39
creating build\lib.win-amd64-cpython-39\rtmidi
copying rtmidi\midiconstants.py -> build\lib.win-amd64-cpython-39\rtmidi
copying rtmidi\midiutil.py -> build\lib.win-amd64-cpython-39\rtmidi
copying rtmidi\release.py -> build\lib.win-amd64-cpython-39\rtmidi
copying rtmidi\__init__.py -> build\lib.win-amd64-cpython-39\rtmidi
running build_ext
building 'rtmidi._rtmidi' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for python-rtmidi
Running setup.py clean for python-rtmidi
Building wheel for llvmlite (setup.py) ... 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-f301n_gf\llvmlite_52e74a978a1540339621403e230729a1\ffi\build.py
-- 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/tmpjza6m78t/CMakeFiles/CMakeOutput.log".
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/tmp0ap85972/CMakeFiles/CMakeOutput.log".
Trying generator 'Visual Studio 14 2015 Win64'
Trying generator 'Visual Studio 15 2017 Win64'
Traceback (most recent call last):
File "C:\Users\Dell\AppData\Local\Temp\pip-install-f301n_gf\llvmlite_52e74a978a1540339621403e230729a1\ffi\build.py", line 192, in <module>
main()
File "C:\Users\Dell\AppData\Local\Temp\pip-install-f301n_gf\llvmlite_52e74a978a1540339621403e230729a1\ffi\build.py", line 180, in main
main_win32()
File "C:\Users\Dell\AppData\Local\Temp\pip-install-f301n_gf\llvmlite_52e74a978a1540339621403e230729a1\ffi\build.py", line 89, in main_win32
generator = find_win32_generator()
File "C:\Users\Dell\AppData\Local\Temp\pip-install-f301n_gf\llvmlite_52e74a978a1540339621403e230729a1\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 numba python-rtmidi llvmlite
Installing collected packages: python-rtmidi, pygtrie, mido, 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
Running setup.py install for python-rtmidi ... error
error: subprocess-exited-with-error
× Running setup.py install for python-rtmidi did not run successfully.
│ exit code: 1
╰─> [15 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
running build_py
creating build
creating build\lib.win-amd64-cpython-39
creating build\lib.win-amd64-cpython-39\rtmidi
copying rtmidi\midiconstants.py -> build\lib.win-amd64-cpython-39\rtmidi
copying rtmidi\midiutil.py -> build\lib.win-amd64-cpython-39\rtmidi
copying rtmidi\release.py -> build\lib.win-amd64-cpython-39\rtmidi
copying rtmidi\__init__.py -> build\lib.win-amd64-cpython-39\rtmidi
running build_ext
building 'rtmidi._rtmidi' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
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.
╰─> python-rtmidi
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
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!
tried to install magenta but receive errors
what I already tried and didn't work:
reinstall all 3 packages
downgrade versions of those packages
the same with cmake and wheel package
install windows sdk
test it on another device

How to solve "python pip install sslkeylog" error: Microsoft Visual C++ 14.0 or greater is required

I try to install sslkeylog module however got the error as follows.
I installed visual studio "Microsoft C++ Build Tools" as suggested in the error message however couldn't solved the problem.
I will appreciate if you can guide me how to solve this problem.
pip install sslkeylog
Collecting sslkeylog
Using cached sslkeylog-0.4.0.tar.gz (4.3 MB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: sslkeylog
Building wheel for sslkeylog (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [11 lines of output]
C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\setuptools\config\setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
copying sslkeylog.py -> build\lib.win-amd64-cpython-310
running build_ext
building '_sslkeylog' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for sslkeylog
Running setup.py clean for sslkeylog
Failed to build sslkeylog
Installing collected packages: sslkeylog
Running setup.py install for sslkeylog ... error
error: subprocess-exited-with-error
× Running setup.py install for sslkeylog did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\setuptools\config\setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
running install
C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\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
running build_py
creating build
creating build\lib.win-amd64-cpython-310
copying sslkeylog.py -> build\lib.win-amd64-cpython-310
running build_ext
building '_sslkeylog' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
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.
╰─> sslkeylog
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
You need to install Visual Studio Build Tools for C++
download link here
page link here
This will download the installer, open it and select Community on the Available tab. Then select Desktop Development with C++ and install that
iirc that should solve your issue ツ

I couldn't install twint in my system where as visual studio latest is installed in my system

I couldn't install twint in my system where as visual studio c++ 14.0 is inatalled in my system. How to fix the error. Please anyone Help .
× Running setup.py install for cchardet did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
running install
C:\Users\ashut\AppData\Local\Programs\Python\Python310\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
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\cchardet
copying src\cchardet\version.py -> build\lib.win-amd64-cpython-310\cchardet
copying src\cchardet\__init__.py -> build\lib.win-amd64-cpython-310\cchardet
running build_ext
building 'cchardet._cchardet' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
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.
╰─> cchardet
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Yappi ModuleNotFoundError even after installation

I have installed yappi successfully but still I'm getting ModuleNotFoundError while importing yappi in the same shell:
((python) ) soumeng78#linux-16 $ pipenv install git+https://github.com/sumerc/yappi#egg=yappi
Installing git+https://github.com/sumerc/yappi#egg=yappi...
Adding yappi to Pipfile's [packages]...
✔ Installation Succeeded
Pipfile.lock (db4242) out of date, updating to (b482eb)...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✔ Success!
Updated Pipfile.lock (b482eb)!
Installing dependencies from Pipfile.lock (b482eb)...
ðŸ ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 0/0 — 00:00:00
((python) ) soumeng78#linux-16 $ python
Python 3.9.6 (default, Jan 4 2022, 00:31:29)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import yappi
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<stdin> 1 <module>
1
ModuleNotFoundError:
No module named 'yappi'
Any idea how to make it work? I want to use yappi for profiling a function.
Removing the old environment and recreating the environment solved the problem. It seems like some issue with pipenv.
When I tried same pip install in conda virtual environment on Windows, I get below issue - seems some issue with the package:
Collecting yappi
Using cached yappi-1.3.3.tar.gz (58 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: yappi
Building wheel for yappi (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [9 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
copying yappi\yappi.py -> build\lib.win-amd64-3.8
running build_ext
building '_yappi' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for yappi
Running setup.py clean for yappi
Failed to build yappi
Installing collected packages: yappi
Running setup.py install for yappi ... error
error: subprocess-exited-with-error
× Running setup.py install for yappi did not run successfully.
│ exit code: 1
╰─> [11 lines of output]
running install
C:\Users\soumen\Miniconda3\envs\kubeflow-pipeline\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
running build_py
creating build
creating build\lib.win-amd64-3.8
copying yappi\yappi.py -> build\lib.win-amd64-3.8
running build_ext
building '_yappi' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
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.
╰─> yappi

Categories

Resources