python setup.py bdist_wheel did not run successfully , installing the psycopg2 - python

I just want to install psycopg2 and I get the following error message:
PS D:\Visualalize_data> pip3 install psycopg2
Collecting psycopg2
Using cached psycopg2-2.9.5.tar.gz (384 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: psycopg2
Building wheel for psycopg2 (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
D:\Python\Lib\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
g2._psycopg' 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 psycopg2
Running setup.py clean for psycopg2
Failed to build psycopg2
Installin
running build
legacy-install-failure
× Encountered error while trying to install package.
╰─> psycopg2
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
What I have already tried:
pip install nes-py --no-cache-dir
pip install --upgrade pip setuptools wheel
My system:
Windows 10
Python 3.10.2 64 Bit
Visual Studio Code

Have you tried doing what the messege tells you to and downloaded
Microsoft Visual C++ 14.0 or greater?
You can install it at "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

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

I am trying to install cx_Oracle in VS code and getting the error Microsoft Visual C++ 14.0 or greater is required

Collecting cx-oracle
Using cached cx_Oracle-8.3.0.tar.gz (363 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: cx-oracle
Building wheel for cx-oracle (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for cx-oracle (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
C:\Users\bhide\AppData\Local\Temp\pip-build-env-ivxi5iqh\overlay\Lib\site-packages\setuptools\config\expand.py:144: UserWarning: File 'C:\Users\bhide\AppData\Local\Temp\pip-install-c848lmx4\cx-oracle_9ca450826f5b4ec282380d54992f5870\README.md' cannot be found
warnings.warn(f"File {path!r} cannot be found")
running bdist_wheel
running build
running build_ext
building 'cx_Oracle' 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 cx-oracle
Failed to build cx-oracle
ERROR: Could not build wheels for cx-oracle, which is required to install pyproject.toml-based projects
How can i get solve this
At a guess, you are using Python 3.11. There are no pre-built cx_Oracle 8.3 packages for that version. Upgrade to the latest cx_Oracle, now called python-oracledb, which does have pre-built packages for the latest Python. With this, you won't need a compiler.
See the python-oracledb release announcement.
In summary, run:
python -m pip install oracledb

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 ツ

PyAudio not found

AttributeError: Could not find PyAudio; check installation
I tried to install pyaudio then it says:
PS E:\MU\Sem 4\JARVIS\CODE> pip install pyaudio
Collecting pyaudio
Using cached PyAudio-0.2.11.tar.gz (37 kB)
Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for pyaudio, since package 'wheel' is not installed.
Installing collected packages: pyaudio
Running setup.py install for pyaudio ... error
error: subprocess-exited-with-error
× Running setup.py install for pyaudio did not run successfully.
│ exit code: 1
╰─> [9 lines of output]
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
copying src\pyaudio.py -> build\lib.win-amd64-3.10
running build_ext
building '_portaudio' 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.
╰─> pyaudio
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Python ERROR: Could not build wheels for cx_Oracle, which is required to install pyproject.toml-based projects

I'm trying to install cx_Oracle and I get this error,
I have the latest setuptools and pip installed.
Has anyone had a similar problem and how did they solve it?
I have VISUAL STUDIO: please see image
enter image description here
Processing c:\....resources\cx_oracle-8.1.0.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: cx_Oracle
Building wheel for cx_Oracle (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for cx_Oracle (pyproject.toml) did not run successfully.
¦ exit code: 1
?-> [7 lines of output]
C:\....\2\pip-build-env-806_5jc6\overlay\Lib\site-packages\setuptools\config\expand.py:144: UserWarning: File 'C:\\....\\2\\pip-install-r8jb3ohi\\cx-oracle_111cfa7e3d91425bb65e9a6baa89c82f\\README.md' cannot be found
warnings.warn(f"File {path!r} cannot be found")
running bdist_wheel
running build
running build_ext
building 'cx_Oracle' 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 cx_Oracle
Failed to build cx_Oracle
ERROR: Could not build wheels for cx_Oracle, which is required to install pyproject.toml-based projects
The image you showed has redistributables, not Visual Studio itself! You will need to follow the provided link to get the Microsoft build tools installed if you want to build it yourself.
If you use pip, however, you should be able to download and install prebuilt binaries -- which is a LOT easier! The command to use is:
python -m pip install cx_Oracle

Categories

Resources