Im trying to install Box2D to python but i didn't succeed - python

Me and my friend are trying to create a simulator based on python so we wanted to use Box2D.
im trying to install box2d to python 3.6 using pip install Box2D but it shows me this -
Using cached https://files.pythonhosted.org/packages/cc/7b/ddb96fea1fa5b24f8929714ef483f64c33e9649e7aae066e5f5023ea46a/Box2D-2.3.2.tar.gz
Installing collected packages: Box2D
Running setup.py install for Box2D ... error
ERROR: Command errored out with exit status 1:
command: 'c:\python36\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-0tson6el\\Box2D\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-0tson6el\\Box2D\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\user\AppData\Local\Temp\pip-record-preupzga\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\user\AppData\Local\Temp\pip-install-0tson6el\Box2D\
Complete output (16 lines):
Using setuptools (version 42.0.2).
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\Box2D
copying library\Box2D\Box2D.py -> build\lib.win-amd64-3.6\Box2D
copying library\Box2D\__init__.py -> build\lib.win-amd64-3.6\Box2D
creating build\lib.win-amd64-3.6\Box2D\b2
copying library\Box2D\b2\__init__.py -> build\lib.win-amd64-3.6\Box2D\b2
running build_ext
building 'Box2D._Box2D' extension
swigging Box2D\Box2D.i to Box2D\Box2D_wrap.cpp
swig.exe -python -c++ -IBox2D -small -O -includeall -ignoremissing -w201 -globals b2Globals -outdir library\Box2D -keyword -w511 -D_SWIG_KWARGS -o Box2D\Box2D_wrap.cpp Box2D\Box2D.i
error: command 'swig.exe' failed: No such file or directory
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\python36\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-0tson6el\\Box2D\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-0tson6el\\Box2D\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\user\AppData\Local\Temp\pip-record-preupzga\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.```
i tried a few solutions i found online but none of them worked.
thanks for the helpers.

I ended up using pymunk, its pretty good from what ive seen.
its not exectly an answer to my question but it might help someone

Related

ERROR: Command errored out with exit status 1: when pip install --upgrade gensim

I am trying to install gensim through because I am working on Topic Modelling with Python on Windows 10.
I did:
pip install --upgrade gensim
and I keep encountering error:
ERROR: Command errored out with exit status 1:
command: 'c:\users\swat_\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\swat_\\AppData\\Local\\Temp\\pip-install-jq6jmo27\\gensim_b5ab7f463fbc44d1850e29dba11294b4\\setup.py'"'"'; __file__='"'"'C:\\Users\\swat_\\AppData\\Local\\Temp\\pip-install-jq6jmo27\\gensim_b5ab7f463fbc44d1850e29dba11294b4\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\swat_\AppData\Local\Temp\pip-record-090khyko\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\swat_\appdata\local\programs\python\python39\Include\gensim'
cwd: C:\Users\swat_\AppData\Local\Temp\pip-install-jq6jmo27\gensim_b5ab7f463fbc44d1850e29dba11294b4\
Complete output (382 lines):
then an output of 382 lines that all resemble:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\gensim
copying gensim\downloader.py -> build\lib.win-amd64-3.9\gensim
copying gensim\interfaces.py -> build\lib.win-amd64-3.9\gensim
copying gensim\matutils.py -> build\lib.win-amd64-3.9\gensim
copying gensim\nosy.py -> build\lib.win-amd64-3.9\gensim
copying gensim\utils.py -> build\lib.win-amd64-3.9\gensim
copying gensim_init_.py -> build\lib.win-amd64-3.9\gensim
creating build\lib.win-amd64-3.9\gensim\corpora
copying gensim\corpora\bleicorpus.py -> build\lib.win-amd64-3.9\gensim\corpora
copying gensim\corpora\csvcorpus.py -> build\lib.win-amd64-3.9\gensim\corpora
copying gensim\corpora\dictionary.py -> build\lib.win-amd64-3.9\gensim\corpora
copying gensim\corpora\hashdictionary.py -> build\lib.win-amd64-3.9\gensim\corpora
....
then ends with this.
ERROR: Command errored out with exit status 1: 'c:\users\swat_\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\swat_\AppData\Local\Temp\pip-install-42rc4g6q\gensim_9e111ba4f41b4925a9f3fc8cdd0170f7\setup.py'"'"'; file='"'"'C:\Users\swat_\AppData\Local\Temp\pip-install-42rc4g6q\gensim_9e111ba4f41b4925a9f3fc8cdd0170f7\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\swat_\AppData\Local\Temp\pip-record-3djkmh1b\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\swat_\appdata\local\programs\python\python39\Include\gensim' Check the logs for full command output.
I have tried to update setuptools by:
pip install --upgrade setuptools
Didn't help.. anybody know what to do?
I fixed it by installing missing Visual Code C++ 14 tools.

When I use pip install proxybroker commands I get `Command errored out with exit status 1`

I get this error when I try to install proxy broker using pip install proxybroker.
Does anyone have any idea how I could fix this? Thanks!
ERROR :
ERROR: Command errored out with exit status 1:
command: 'c:\users\USER\appdata\local\programs\python\python38-32\python.exe'
-u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-g6xxyr1w\\maxminddb\\setup.py'"'"';
__file__='"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-g6xxyr1w\\maxminddb\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\USER\AppData\Local\Temp\pip-record-yj7gz1gk\install-record.txt'
--single-version-externally-managed --compile --install-headers 'c:\users\USER\appdata\local\programs\python\python38-32\Include\maxminddb'
cwd: C:\Users\USER\AppData\Local\Temp\pip-install-g6xxyr1w\maxminddb\
Complete output (24 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\maxminddb
copying maxminddb\const.py -> build\lib.win32-3.8\maxminddb
copying maxminddb\decoder.py -> build\lib.win32-3.8\maxminddb
copying maxminddb\errors.py -> build\lib.win32-3.8\maxminddb
copying maxminddb\file.py -> build\lib.win32-3.8\maxminddb
copying maxminddb\reader.py -> build\lib.win32-3.8\maxminddb
copying maxminddb\types.py -> build\lib.win32-3.8\maxminddb
copying maxminddb\__init__.py -> build\lib.win32-3.8\maxminddb
running egg_info
writing maxminddb.egg-info\PKG-INFO
writing dependency_links to maxminddb.egg-info\dependency_links.txt
writing top-level names to maxminddb.egg-info\top_level.txt
reading manifest file 'maxminddb.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: manifest_maker: MANIFEST.in, line 2: path 'tests/' cannot end with '/'
writing manifest file 'maxminddb.egg-info\SOURCES.txt'
running build_ext
error: can't compile C/C++ code: unable to load module 'distutils._msvccompiler'
---------------------------------------- ERROR: Command errored out with exit status 1: 'c:\users\USER\appdata\local\programs\python\python38-32\python.exe'
-u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-g6xxyr1w\\maxminddb\\setup.py'"'"';
__file__='"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-g6xxyr1w\\maxminddb\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\USER\AppData\Local\Temp\pip-record-yj7gz1gk\install-record.txt'
--single-version-externally-managed --compile --install-headers 'c:\users\USER\appdata\local\programs\python\python38-32\Include\maxminddb' Check the logs for full command output.

Instapy does not install

When trying to install Instapy on a Mac, it runs fine until I get this error. It also brings up a call box saying The "gcc" command requires the command line developer tools. Would you like to install the tools now? I click yes, the program runs for a little then says Can't install the software because it is not currently available from the Software Update Server. Might be something with trying to install regex in conjunction with Instapy. Please advise.
Error code:
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ls/n78nsrps7g11kns59t2n659r0000gn/T/pip-install-zvp3cah2/regex/setup.py'"'"'; __file__='"'"'/private/var/folders/ls/n78nsrps7g11kns59t2n659r0000gn/T/pip-install-zvp3cah2/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/ls/n78nsrps7g11kns59t2n659r0000gn/T/pip-record-gqcrl4uz/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/regex
cwd: /private/var/folders/ls/n78nsrps7g11kns59t2n659r0000gn/T/pip-install-zvp3cah2/regex/
Complete output (17 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.8
creating build/lib.macosx-10.9-x86_64-3.8/regex
copying regex_3/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/regex
copying regex_3/regex.py -> build/lib.macosx-10.9-x86_64-3.8/regex
copying regex_3/_regex_core.py -> build/lib.macosx-10.9-x86_64-3.8/regex
copying regex_3/test_regex.py -> build/lib.macosx-10.9-x86_64-3.8/regex
running build_ext
building 'regex._regex' extension
creating build/temp.macosx-10.9-x86_64-3.8
creating build/temp.macosx-10.9-x86_64-3.8/regex_3
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c regex_3/_regex.c -o build/temp.macosx-10.9-x86_64-3.8/regex_3/_regex.o
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ls/n78nsrps7g11kns59t2n659r0000gn/T/pip-install-zvp3cah2/regex/setup.py'"'"'; __file__='"'"'/private/var/folders/ls/n78nsrps7g11kns59t2n659r0000gn/T/pip-install-zvp3cah2/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/ls/n78nsrps7g11kns59t2n659r0000gn/T/pip-record-gqcrl4uz/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/regex Check the logs for full command output.
Figured it out. I needed to download xcode. That updates everything on the developer end. Tried re-installing Instapy and it went right through. Also got regex in there as well. Woo!

How do I solve this Open AI gym installation problem?

git clone https://github.com/openai/gym
cd gym
pip install -e .
When I follow the documentation for installation it throws this error:
Failed to build box2d-py mujoco-py
DEPRECATION: Could not build wheels for box2d-py, mujoco-py which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
Installing collected packages: box2d-py, glfw, Cython, imageio, lockfile, mujoco-py, gym
Running setup.py install for box2d-py ... error
I have seen others having the same issues however they suggested that I must uninstall python 2.7 and use only python 3.
I have checked my python version and it is only 3.7 and no other versions are available so can someone help me out.
ERROR: Command errored out with exit status 1:
command: 'c:\users\m\.conda\envs\tensorflow\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\MITHIL~1\\AppData\\Local\\Temp\\pip-install-6ozh5a9c\\box2d-py\\setup.py'"'"'; __file__='"'"'C:\\Users\\m1\\AppData\\Local\\Temp\\pip-install-6ozh5a9c\\box2d-py\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\M~1\AppData\Local\Temp\pip-wheel-gruiq9b6'
cwd: C:\Users\M~1\AppData\Local\Temp\pip-install-6ozh5a9c\box2d-py\
Complete output (16 lines):
Using setuptools (version 49.6.0.post20200814).
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\Box2D
copying library\Box2D\Box2D.py -> build\lib.win-amd64-3.7\Box2D
copying library\Box2D\__init__.py -> build\lib.win-amd64-3.7\Box2D
creating build\lib.win-amd64-3.7\Box2D\b2
copying library\Box2D\b2\__init__.py -> build\lib.win-amd64-3.7\Box2D\b2
running build_ext
building 'Box2D._Box2D' extension
swigging Box2D\Box2D.i to Box2D\Box2D_wrap.cpp
swig.exe -python -c++ -IBox2D -small -O -includeall -ignoremissing -w201 -globals b2Globals -outdir library\Box2D -keyword -w511 -D_SWIG_KWARGS -o Box2D\Box2D_wrap.cpp Box2D\Box2D.i
error: command 'swig.exe' failed: No such file or directory
----------------------------------------
ERROR: Failed building wheel for box2d-py
Running setup.py clean for box2d-py
Failed to build box2d-py
Installing collected packages: box2d-py
Running setup.py install for box2d-py ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\m\.conda\envs\tensorflow\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\M~1\\AppData\\Local\\Temp\\pip-install-6ozh5a9c\\box2d-py\\setup.py'"'"'; __file__='"'"'C:\\Users\\M~1\\AppData\\Local\\Temp\\pip-install-6ozh5a9c\\box2d-py\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\M~1\AppData\Local\Temp\pip-record-67o7g705\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\m\.conda\envs\tensorflow\Include\box2d-py'
cwd: C:\Users\M~1\AppData\Local\Temp\pip-install-6ozh5a9c\box2d-py\
Complete output (16 lines):
Using setuptools (version 49.6.0.post20200814).
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\Box2D
copying library\Box2D\Box2D.py -> build\lib.win-amd64-3.7\Box2D
copying library\Box2D\__init__.py -> build\lib.win-amd64-3.7\Box2D
creating build\lib.win-amd64-3.7\Box2D\b2
copying library\Box2D\b2\__init__.py -> build\lib.win-amd64-3.7\Box2D\b2
running build_ext
building 'Box2D._Box2D' extension
swigging Box2D\Box2D.i to Box2D\Box2D_wrap.cpp
swig.exe -python -c++ -IBox2D -small -O -includeall -ignoremissing -w201 -globals b2Globals -outdir library\Box2D -keyword -w511 -D_SWIG_KWARGS -o Box2D\Box2D_wrap.cpp Box2D\Box2D.i
error: command 'swig.exe' failed: No such file or directory
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\m\.conda\envs\tensorflow\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\MITHIL~1\\AppData\\Local\\Temp\\pip-install-6ozh5a9c\\box2d-py\\setup.py'"'"'; __file__='"'"'C:\\Users\\M~1\\AppData\\Local\\Temp\\pip-install-6ozh5a9c\\box2d-py\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\M~1\AppData\Local\Temp\pip-record-67o7g705\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\m\.conda\envs\tensorflow\Include\box2d-py'
Check the logs for full command output
Try this:
pip install gym==0.7.4
This is a lite version.
You might also need to run the following:
$ apt-get install -y libglu1-mesa-dev libgl1-mesa-dev libosmesa6-dev xvfb ffmpeg curl patchelf libglfw3 libglfw3-dev cmake zlib1g zlib1g-dev swig
Solution for very similar problem
I had very similar problem with instalation Box2 as tensorflow docs stated
pip install gym[Box2D]
Error log was pretty similar
Complete output (18 lines):
Using setuptools (version 61.2.0).
running install
C:\Users\Greg\anaconda3\envs\driver\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
creating build\lib.win-amd64-3.8\Box2D
copying library\Box2D\Box2D.py -> build\lib.win-amd64-3.8\Box2D
copying library\Box2D\__init__.py -> build\lib.win-amd64-3.8\Box2D
creating build\lib.win-amd64-3.8\Box2D\b2
copying library\Box2D\b2\__init__.py -> build\lib.win-amd64-3.8\Box2D\b2
running build_ext
building 'Box2D._Box2D' extension
swigging Box2D\Box2D.i to Box2D\Box2D_wrap.cpp
swig.exe -python -c++ -IBox2D -small -O -includeall -ignoremissing -w201 -globals b2Globals -outdir library\Box2D -keyword -w511 -D_SWIG_KWARGS -o Box2D\Box2D_wrap.cpp Box2D\Box2D.i
error: command 'swig.exe' failed: None
but I have found very simple solution:
pip install Box2D
Newest modules that work for me:
Box2D==2.3.10
gym==0.24.0

Can not install pyaudio library in python

As I am running CMD as administrator and trying to install pyaudio by pip install pyaudio I am getting the folloing error. I also have installed MS-VS C++ 14.
Installing collected packages: pyaudio
Running setup.py install for pyaudio ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\cloud analogy\appdata\local\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\CLOUDA~1\AppData\Local\Temp\pip-install-dcxzpwri\pyaudio\setup.py'"'"'; __file__='"'"'C:\Users\CLOUDA~1\AppData\Local\Temp\pip-install-dcxzpwri\pyaudio\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\CLOUDA~1\AppData\Local\Temp\pip-record-1s6dsj4b\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\CLOUDA~1\AppData\Local\Temp\pip-install-dcxzpwri\pyaudio\
Complete output (9 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
copying src\pyaudio.py -> build\lib.win32-3.7
running build_ext
building '_portaudio' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\cloud analogy\appdata\local\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\CLOUDA~1\AppData\Local\Temp\pip-install-dcxzpwri\pyaudio\setup.py'"'"'; __file__='"'"'C:\Users\CLOUDA~1\AppData\Local\Temp\pip-install-dcxzpwri\pyaudio\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\CLOUDA~1\AppData\Local\Temp\pip-record-1s6dsj4b\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
Since you are on windows, go to https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio
and download pyaudio according to the version of python that you have
Then navigate to the directory that contains your file and install the module except replacing the module name with the file name
e.g.
pip install PyAudio‑0.2.11‑cp39‑cp39‑win_amd64.whl

Categories