I am having trouble downloading the python package fast_slic - python

I am trying to download the python package fast_slic. I have downloaded the files necessary here: https://pypi.org/project/fast-slic/#files. I have also installed the Microsoft Visual Studio Installer to aid the process. This is the code I use and the error message I am receiving:
pip install fast_slic
Collecting fast_slicNote: you may need to restart the kernel to use updated packages. Using cached fast-slic-0.4.0.tar.gz (47 kB) Requirement already satisfied: numpy in c:\users\david\appdata\local\programs\python\python39\lib\site-packages (from fast_slic) (1.19.5) Building wheels for collected packages: fast-slic
ERROR: Command errored out with exit status 1: command: 'C:\Users\David\AppData\Local\Programs\Python\Python39\python.exe' -u
-c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\David\\AppData\\Local\\Temp\\pip-install-g7wsi08t\\fast-slic_eeed0754caf74386bc0ad33b27a930a6\\setup.py'"'"';
__file__='"'"'C:\\Users\\David\\AppData\\Local\\Temp\\pip-install-g7wsi08t\\fast-slic_eeed0754caf74386bc0ad33b27a930a6\\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'"'"'))' bdist_wheel -d 'C:\Users\David\AppData\Local\Temp\pip-wheel-z2t076vn'
cwd: C:\Users\David\AppData\Local\Temp\pip-install-g7wsi08t\fast-slic_eeed0754caf74386bc0ad33b27a930a6\ Complete output (30 lines): Building wheel for fast-slic (setup.py): started Building wheel for fast-slic (setup.py): finished with status 'error' Running setup.py clean for fast-slic Failed to build fast-slic Installing collected packages: fast-slic
Running setup.py install for fast-slic: started
Running setup.py install for fast-slic: finished with status 'error' running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.9 creating build\lib.win-amd64-3.9\cpuid copying cpuid\cpuid.py -> build\lib.win-amd64-3.9\cpuid copying cpuid\__init__.py -> build\lib.win-amd64-3.9\cpuid creating build\lib.win-amd64-3.9\fast_slic show more (open the raw output data in a text editor) ...
C:\Users\David\AppData\Local\Programs\Python\Python39\include\pyconfig.h(201): fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
C:\Users\David\AppData\Local\Programs\Python\Python39\include\pyconfig.h(201): fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
---------------------------------------- ERROR: Command errored out with exit status 1: 'C:\Users\David\AppData\Local\Programs\Python\Python39\python.exe' -u
-c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\David\\AppData\\Local\\Temp\\pip-install-g7wsi08t\\fast-slic_eeed0754caf74386bc0ad33b27a930a6\\setup.py'"'"';
__file__='"'"'C:\\Users\\David\\AppData\\Local\\Temp\\pip-install-g7wsi08t\\fast-slic_eeed0754caf74386bc0ad33b27a930a6\\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\David\AppData\Local\Temp\pip-record-ik_8uebk\install-record.txt'
--single-version-externally-managed --compile --install-headers 'C:\Users\David\AppData\Local\Programs\Python\Python39\Include\fast-slic' Check the logs for full command output.
I am running windows on my laptop.
Any help is greatly appreciated

If you are in Windows try to run in the command prompt py -m pip install fast-slic?

I have figured out the problem. I think I had some corrupt files so I downloaded the Windows 10 SDK (10.0.19041.0) from Visual Studio Installer and re-ran the code

Related

when deploy django app to heroku it show this type of error what to do?

error: [Errno 2] No such file or directory: 'build/scripts-3.9/runner'
----------------------------------------
ERROR: Failed building wheel for MyProject
Running setup.py clean for MyProject
Building wheel for psycopg2 (setup.py): started
Building wheel for psycopg2 (setup.py): finished with status 'done'
Created wheel for psycopg2: filename=psycopg2-2.9.3-cp39-cp39-linux_x86_64.whl size=579697 sha256=aff6ba164506cddbb1b1b007118ccf1363be963eb13deff8c671df4c4604c5d0
Stored in directory: /tmp/pip-ephem-wheel-cache-urp59i8g/wheels/b3/a1/6e/5a0e26314b15eb96a36263b80529ce0d64382540ac7b9544a9
Successfully built comtypes iface psycopg2
Failed to build MyProject
Installing collected packages: sqlparse, pyparsing, asgiref, whitenoise, tomli, py, psycopg2, pluggy, packaging, MarkupSafe, iniconfig, Django, dj-database-url, attrs, tzdata, pywifi, pytest, MyProject, Jinja2, iface, gunicorn, django-heroku, comtypes, colorama, atomicwrites
Running setup.py install for MyProject: started
Running setup.py install for MyProject: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /app/.heroku/python/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_t5d7cl9/myproject_6028566010f545bea380a8fe2531b2ca/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_t5d7cl9/myproject_6028566010f545bea380a8fe2531b2ca/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 /tmp/pip-record-vwqkuw1t/install-record.txt --single-version-externally-managed --compile --install-headers /app/.heroku/python/include/python3.9/MyProject
cwd: /tmp/pip-install-_t5d7cl9/myproject_6028566010f545bea380a8fe2531b2ca/
Complete output (17 lines):
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/pkgA
copying pkgA/modA_2.py -> build/lib/pkgA
copying pkgA/modA_1.py -> build/lib/pkgA
copying pkgA/__init__.py -> build/lib/pkgA
creating build/lib/pkgB
copying pkgB/__init__.py -> build/lib/pkgB
copying pkgB/modeB.py -> build/lib/pkgB
running build_scripts
creating build/scripts-3.9
warning: build_scripts: runner is an empty file (skipping)
error: [Errno 2] No such file or directory: 'build/scripts-3.9/runner'
----------------------------------------
ERROR: Command errored out with exit status 1: /app/.heroku/python/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_t5d7cl9/myproject_6028566010f545bea380a8fe2531b2ca/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_t5d7cl9/myproject_6028566010f545bea380a8fe2531b2ca/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 /tmp/pip-record-vwqkuw1t/install-record.txt --single-version-externally-managed --compile --install-headers /app/.heroku/python/include/python3.9/MyProject Check the logs for full command output.
! Push rejected, failed to compile Python app.
! Push failed
when i try to deploy my django project with postgres DB it show like this when i was using sqlite i works but in postgrase this error happening please Help

Failure to install pyaudio [duplicate]

This question already has an answer here:
I can't install pyaudio on Windows 11? [duplicate]
(1 answer)
Closed 1 year ago.
I am attempting to make my own alexa and everytime I try to install pyaudio via the PyCharm terminal it comes up with this huge error:
Collecting pyaudio
Using cached PyAudio-0.2.11.tar.gz (37 kB)
Building wheels for collected packages: pyaudio
Building wheel for pyaudio (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\rajan\PycharmProjects\jarvisv2\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\rajan\\AppData\\Lo
cal\\Temp\\pip-install-88sq5u2t\\pyaudio_23e33d64381a4b7aa4337aa861032198\\setup.py'"'"'; __file__='"'"'C:\\Users\\rajan\\AppData\\Local\\Temp\\pip-install-88sq5u2t\\pyaudio_2
3e33d64381a4b7aa4337aa861032198\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import s
etup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\rajan\AppData\Local
\Temp\pip-wheel-hc4a9xm0'
cwd: C:\Users\rajan\AppData\Local\Temp\pip-install-88sq5u2t\pyaudio_23e33d64381a4b7aa4337aa861032198\
Complete output (9 lines):
running bdist_wheel
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 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for pyaudio
Running setup.py clean for pyaudio
Failed to build pyaudio
Installing collected packages: pyaudio
Running setup.py install for pyaudio ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\rajan\PycharmProjects\jarvisv2\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\rajan\\AppData\\
Local\\Temp\\pip-install-88sq5u2t\\pyaudio_23e33d64381a4b7aa4337aa861032198\\setup.py'"'"'; __file__='"'"'C:\\Users\\rajan\\AppData\\Local\\Temp\\pip-install-88sq5u2t\\pyaudio
_23e33d64381a4b7aa4337aa861032198\\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\rajan\AppData\L
ocal\Temp\pip-record-n4u5ra3r\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\rajan\PycharmProjects\jarvisv2\venv\include\site\py
thon3.9\pyaudio'
cwd: C:\Users\rajan\AppData\Local\Temp\pip-install-88sq5u2t\pyaudio_23e33d64381a4b7aa4337aa861032198\
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 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:\Users\rajan\PycharmProjects\jarvisv2\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] =
'"'"'C:\\Users\\rajan\\AppData\\Local\\Temp\\pip-install-88sq5u2t\\pyaudio_23e33d64381a4b7aa4337aa861032198\\setup.py'"'"'; __file__='"'"'C:\\Users\\rajan\\AppData\\Local\\Te
mp\\pip-install-88sq5u2t\\pyaudio_23e33d64381a4b7aa4337aa861032198\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.Str
ingIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install -
-record 'C:\Users\rajan\AppData\Local\Temp\pip-record-n4u5ra3r\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\rajan\PycharmProje
cts\jarvisv2\venv\include\site\python3.9\pyaudio' Check the logs for full command output.
WARNING: You are using pip version 21.1.2; however, version 21.3.1 is available.
You should consider upgrading via the 'C:\Users\*****\PycharmProjects\jarvisv2\venv\Scripts\python.exe -m pip install --upgrade pip' command.
How to solve this?
You need to install Microsoft Visual C++ 14.0 or greater.
Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
Just download and install those build tools, then try again.
When installing certain packages, certain MS tools are required to build them.

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.

Getting an error in downloading PyAudio from my powershell and cmd

Hello friends,
I am getting an error when I am trying to download the PyAudio module in python. And, yes I copied the pip install PyAudio from the website of pyAudio please guys help me and the problem is shown like this:
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:\new folder\python37\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Everin-k\AppData\Local\Temp\pip-install-07nuopc5\pyaudio_00730340754743aa9b4975c8bd6e8427\setup.py'"'"'; file='"'"'C:\Users\Everin-k\AppData\Local\Temp\pip-install-07nuopc5\pyaudio_00730340754743aa9b4975c8bd6e8427\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\Everin-k\AppData\Local\Temp\pip-record-qnzl4njq\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\new folder\python37\Include\PyAudio'
cwd: C:\Users\Everin-k\AppData\Local\Temp\pip-install-07nuopc5\pyaudio_00730340754743aa9b4975c8bd6e8427
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 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:\new folder\python37\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Everin-k\AppData\Local\Temp\pip-install-07nuopc5\pyaudio_00730340754743aa9b4975c8bd6e8427\setup.py'"'"'; file='"'"'C:\Users\Everin-k\AppData\Local\Temp\pip-install-07nuopc5\pyaudio_00730340754743aa9b4975c8bd6e8427\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\Everin-k\AppData\Local\Temp\pip-record-qnzl4njq\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\new folder\python37\Include\PyAudio' Check the logs for full command output.
Python is correctly installed and added in path right ?

Can't install PyAudio on windows 10, python 3.9.5

Trying to download PyAudio by pip install PyAudio but this isn't working. I'm using Python 3.9.5
also tried python -m pip install pyaudio but it didn't work. Anyone having the same error??
help me solve this error please...
see the code below for reference ↓
Collecting PyAudio
Using cached PyAudio-0.2.11.tar.gz (37 kB)
Building wheels for collected packages: PyAudio
Building wheel for PyAudio (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\keepa\appdata\local\programs\python\python39\python.exe' -u
-c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\keepa\\AppData\\Local\\Temp\\pip-install-e979x4nc\\pyaudio_403fcffb6b004552a1d48ac0e0876dd8\\setup.py'"'"';
__file__='"'"'C:\\Users\\keepa\\AppData\\Local\\Temp\\pip-install-e979x4nc\\pyaudio_403fcffb6b004552a1d48ac0e0876dd8\\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'"'"'))' bdist_wheel -d 'C:\Users\keepa\AppData\Local\Temp\pip-wheel-trp3euxd'
cwd: C:\Users\keepa\AppData\Local\Temp\pip-install-e979x4nc\pyaudio_403fcffb6b004552a1d48ac0e0876dd8\
Complete output (9 lines):
running bdist_wheel
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 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for PyAudio
Running setup.py clean for PyAudio
Failed to build PyAudio
Installing collected packages: PyAudio
Running setup.py install for PyAudio ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\keepa\appdata\local\programs\python\python39\python.exe' -u
-c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\keepa\\AppData\\Local\\Temp\\pip-install-e979x4nc\\pyaudio_403fcffb6b004552a1d48ac0e0876dd8\\setup.py'"'"';
__file__='"'"'C:\\Users\\keepa\\AppData\\Local\\Temp\\pip-install-e979x4nc\\pyaudio_403fcffb6b004552a1d48ac0e0876dd8\\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\keepa\AppData\Local\Temp\pip-record-isa75oeg\install-record.txt'
--single-version-externally-managed --compile --install-headers 'c:\users\keepa\appdata\local\programs\python\python39\Include\PyAudio'
cwd: C:\Users\keepa\AppData\Local\Temp\pip-install-e979x4nc\pyaudio_403fcffb6b004552a1d48ac0e0876dd8\
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 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:\users\keepa\appdata\local\programs\python\python39\python.exe' -u
-c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\keepa\\AppData\\Local\\Temp\\pip-install-e979x4nc\\pyaudio_403fcffb6b004552a1d48ac0e0876dd8\\setup.py'"'"';
__file__='"'"'C:\\Users\\keepa\\AppData\\Local\\Temp\\pip-install-e979x4nc\\pyaudio_403fcffb6b004552a1d48ac0e0876dd8\\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\keepa\AppData\Local\Temp\pip-record-isa75oeg\install-record.txt'
--single-version-externally-managed --compile --install-headers 'c:\users\keepa\appdata\local\programs\python\python39\Include\PyAudio' Check the logs for full command output.
When running python 3.6 this works, but with python 3.7 it doesn't.
PyAudio only supports up to python 3.6:
pip will fetch and install PyAudio wheels (prepackaged binaries). Currently, there are wheels compatible with the official distributions of Python 2.7, 3.4, 3.5, and 3.6.
The workarounds would be to use a supported version of python, or to build and install manually - if the latter, you'll need to make sure you have the correct libraries installed and configured.
I should point out that PyAudio appears to be deprecated. It hasn't received an update since March 2017. Therefore I recommend you find another package for this.
Same problem due to the absence of Microsoft compiler that i didn't want to install on my PC.
I used this website unofficial pre-compiled pyaudio wheel packages, it worked well. So download wheel files at this site:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio
Of course, download the wheel version that is compatible with your python version.
use the command:
pip install wheel_file_downloaded
pip install pipwin
python -m pipwin install pyaudio

Categories