Getting the following error while running 'pip install web3' command [duplicate] - python

This question already has answers here:
Error "Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)"
(36 answers)
Error while installing lxml through pip: Microsoft Visual C++ 14.0 is required
(8 answers)
Pip error even Microsoft Visual C++ 14.0 is installed
(4 answers)
How to solve "error: Microsoft Visual C++ 14.0 or greater is required" when installing Python packages?
(9 answers)
Closed 12 months ago.
I ran the command
pip install web3
and got the following error
ERROR: Command errored out with exit status 1:
command: 'C:\Program Files\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\kashy\\AppData\\Local\\Temp\\pip-install-m2poz8gm\\cytoolz_aca0ceb4e0dd49da9c9b73d162a22e9f\\setup.py'"'"'; __file__='"'"'C:\\Users\\kashy\\AppData\\Local\\Temp\\pip-install-m2poz8gm\\cytoolz_aca0ceb4e0dd49da9c9b73d162a22e9f\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\kashy\AppData\Local\Temp\pip-record-350ycn7k\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\kashy\AppData\Roaming\Python\Python310\Include\cytoolz'
cwd: C:\Users\kashy\AppData\Local\Temp\pip-install-m2poz8gm\cytoolz_aca0ceb4e0dd49da9c9b73d162a22e9f\
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/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Program Files\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\kashy\\AppData\\Local\\Temp\\pip-install-m2poz8gm\\cytoolz_aca0ceb4e0dd49da9c9b73d162a22e9f\\setup.py'"'"'; __file__='"'"'C:\\Users\\kashy\\AppData\\Local\\Temp\\pip-install-m2poz8gm\\cytoolz_aca0ceb4e0dd49da9c9b73d162a22e9f\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\kashy\AppData\Local\Temp\pip-record-350ycn7k\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\kashy\AppData\Roaming\Python\Python310\Include\cytoolz' Check the logs for full command output.
How to solve this error?

You probably need Microsoft Visual C++ 14.0 or greater version.

Related

i don't know why , when i'm install matplotlib it's can't [duplicate]

This question already has answers here:
Can't install Matplotlib on Python 3.10 after its release (2021-10-05)
(2 answers)
Closed 1 year ago.
ERROR: Command errored out with exit status 1: 'C:\Program Files\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\USer\\AppData\\Local\\Temp\\pip-install-lfu2ezm2\\matplotlib_a6f263fb06cb49b0ba9dd9f1bc0eef1f\\setup.py'"'"'; __file__='"'"'C:\\Users\\USer\\AppData\\Local\\Temp\\pip-install-lfu2ezm2\\matplotlib_a6f263fb06cb49b0ba9dd9f1bc0eef1f\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\USer\AppData\Local\Temp\pip-record-iz0t3g38\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\USer\AppData\Roaming\Python\Python310\Include\matplotlib' Check the logs for full command output.
There is no version for matplotlib in Python 3.10, try using an older version of python.

error: command after pip install prophet failed with exit status 2 -

I'm trying to install prophet module with pip install prophet and I get this error:
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit status 2
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\roman\anaconda\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Roman\\AppData\\Local\\Temp\\pip-install-3atf7x8i\\prophet_b4d79ec5b1364530badc909dc352ecb0\\setup.py'"'"'; __file__='"'"'C:\\Users\\Roman\\AppData\\Local\\Temp\\pip-install-3atf7x8i\\prophet_b4d79ec5b1364530badc909dc352ecb0\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Roman\AppData\Local\Temp\pip-record-3wqyamtb\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\roman\anaconda\Include\prophet' Check the logs for full command output.
I'm really stuck and don't know what to do
thank you in advance!

pyaudio installation problem command error occured

I've been trying to install pyaudio module for speech recognition through a microphone but i couldn't and i have no idea what this error says to me. I'd be very happy if someone helps me
here is the error code (it is the same error without a virtual environment btw, i am using visual studio code):
.
(venv) PS C:\Users\user\Desktop\Coding\Python\speech> pip install pyaudio
Collecting pyaudio
Using cached PyAudio-0.2.11.tar.gz (37 kB)
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: Command errored out with exit status 1:
command: 'c:\users\user\desktop\coding\python\venv\scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\user\AppData\Local\Temp\pip-install-h3_xztlm\pyaudio_ed19c843927e4d4a9d6303dc8a6e860a\setup.py'"'"'; file='"'"'C:\Users\user\AppData\Local\Temp\pip-install-h3_xztlm\pyaudio_ed19c843927e4d4a9d6303dc8a6e860a\setup.py'"'"';f = getattr(tokenize,
'"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\user\AppData\Local\Temp\pip-record-5sg_cu_f\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\user\desktop\coding\python\venv\include\site\python3.9\pyaudio'
cwd: C:\Users\user\AppData\Local\Temp\pip-install-h3_xztlm\pyaudio_ed19c843927e4d4a9d6303dc8a6e860a
Complete output (9 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
copying src\pyaudio.py -> build\lib.win-amd64-3.9
running build_ext
building '_portaudio' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\user\desktop\coding\python\venv\scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\user\AppData\Local\Temp\pip-install-h3_xztlm\pyaudio_ed19c843927e4d4a9d6303dc8a6e860a\setup.py'"'"'; file='"'"'C:\Users\user\AppData\Local\Temp\pip-install-h3_xztlm\pyaudio_ed19c843927e4d4a9d6303dc8a6e860a\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code =
f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\user\AppData\Local\Temp\pip-record-5sg_cu_f\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\user\desktop\coding\python\venv\include\site\python3.9\pyaudio' Check the logs for full command output.
I have installed the Visual Studio C++
Nothing changed.
Thx.

How to fix the Error: Command errored out with exit status 1

I was going to install epanettools using pip.
pip install epanettools
But I ran into an error shown below:
ERROR: Command errored out with exit status 1: 'c:\users\ziyuan\appdata\local\programs\python\python38\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ziyuan\\AppData\\Local\\Temp\\pip-install-4nq1zwm9\\epanettools_e084a922f7b240baa95c32e399a3fca7\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ziyuan\\AppData\\Local\\Temp\\pip-install-4nq1zwm9\\epanettools_e084a922f7b240baa95c32e399a3fca7\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Ziyuan\AppData\Local\Temp\pip-record-w1loj73h\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\ziyuan\appdata\local\programs\python\python38\Include\epanettools' Check the logs for full command output.
In my computer, I have installed the VS code.
Appreicate a lot if any advice to fix this error!
At the the beginning, I just tried to install epanettools with python 3.8.5. Then I installed it with lower version (3.7) of python, it works.

I'm facing error while installing pymrmr, any suggestion?

This is the error that I'm facing while installing pymrmr with the command -
pip install pymrmr
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Buil
dTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with
exit status 2
I am facing the following error during install pymrmr
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/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\ProgramData\Anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\User\AppData\Local\Temp\pip-install-wn37r25z\pymrmr_8299da47bb1249e8adefe32989c011b4\setup.py'"'"'; file='"'"'C:\Users\User\AppData\Local\Temp\pip-install-wn37r25z\pymrmr_8299da47bb1249e8adefe32989c011b4\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\User\AppData\Local\Temp\pip-record-r71o_m6f\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\ProgramData\Anaconda3\Include\pymrmr' Check the logs for full command output.enter image description here
The pymrmr depends on numpy and Cython. You need to install the dependencies, then you should have no problem installing pymrmr:
pip install numpy Cython
pip install pymrmr
For more information, please go to https://pypi.org/project/pymrmr/

Categories