I am new to python notebook and python. I'm currently taking python for data science on LinkedIn learning, and I'm running into problem below and couldn't find the solution.
''''! pip3 install plotly''''
Collecting plotly
Using cached https://files.pythonhosted.org/packages/15/90/918bccb0ca60dc6d126d921e2c67126d75949f5da777e6b18c51fb12603d/plotly-4.6.0-py2.py3-none-any.whl
Requirement already satisfied: six in ./Library/Python/3.8/lib/python/site-packages (from plotly) (1.14.0)
Collecting retrying>=1.3.3 (from plotly)
Using cached https://files.pythonhosted.org/packages/44/ef/beae4b4ef80902f22e3af073397f079c96969c69b2c7d52a57ea9ae61c9d/retrying-1.3.3.tar.gz
Installing collected packages: retrying, plotly
Running setup.py install for retrying ... error
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/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/setup.py'"'"'; __file__='"'"'/private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/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/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-record-w8sk2i31/install-record.txt --single-version-externally-managed --compile
cwd: /private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/
Complete output (9 lines):
running install
running build
running build_py
creating build
creating build/lib
copying retrying.py -> build/lib
running install_lib
copying build/lib/retrying.py -> /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages
error: could not create '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/retrying.py': Permission denied
----------------------------------------
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/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/setup.py'"'"'; __file__='"'"'/private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/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/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-record-w8sk2i31/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Try:
pip install plotly==4.6.0 --user
https://plotly.com/python/getting-started/
Related
I am trying using FFTW3 in python and when I try to install it I got this:
xxxxxxx#iMac ~ % pip3 install pyfftw3
Collecting pyfftw3
Using cached PyFFTW3-0.2.1.tar.gz (25 kB)
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python#3.9/bin/python3.9 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-m021xxq5/pyfftw3_69a9370f7f41441eaca6ae508a6a1544/setup.py'"'"'; __file__='"'"'/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-m021xxq5/pyfftw3_69a9370f7f41441eaca6ae508a6a1544/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-pip-egg-info-m06gikf1
cwd: /private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-m021xxq5/pyfftw3_69a9370f7f41441eaca6ae508a6a1544/
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-m021xxq5/pyfftw3_69a9370f7f41441eaca6ae508a6a1544/setup.py", line 81
print "build %s from template %s" %(outfile, tmplfile)
^
SyntaxError: invalid syntax
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/58/07/e070b9a44429bbd5481f9f0b2d1b35d896fbfd180051e05c840186a31c8a/PyFFTW3-0.2.1.tar.gz#sha256=8941a023e6e4f501e7cec92382c3d3f76f47c7583e9eade738840dd9e4e467c4 (from https://pypi.org/simple/pyfftw3/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement pyfftw3
ERROR: No matching distribution found for pyfftw3
I have the newest version of python installed by Homebrew.
Pip is also the newest version.
I have tried pip install -U setuptools
Inspired by 'Swetank Poddar': I found the pyfftw3 is a python2 library, so I tried pip3 install pyfftw. But, I got a new question:
Collecting pyfftw
Downloading pyFFTW-0.12.0.tar.gz (137 kB)
|████████████████████████████████| 137 kB 167 kB/s
Requirement already satisfied: numpy<2.0,>=1.10 in /usr/local/lib/python3.9/site-packages (from pyfftw) (1.19.5)
Building wheels for collected packages: pyfftw
Building wheel for pyfftw (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python#3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-p3twpksg/pyfftw_a5a93b1d21cd45bb90489634e47c82a5/setup.py'"'"'; __file__='"'"'/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-p3twpksg/pyfftw_a5a93b1d21cd45bb90489634e47c82a5/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 /private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-wheel-e51wsh5k
cwd: /private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-p3twpksg/pyfftw_a5a93b1d21cd45bb90489634e47c82a5/
Complete output (25 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.15-x86_64-3.9
creating build/lib.macosx-10.15-x86_64-3.9/pyfftw
copying pyfftw/config.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw
copying pyfftw/_version.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw
copying pyfftw/__init__.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw
creating build/lib.macosx-10.15-x86_64-3.9/pyfftw/builders
copying pyfftw/builders/builders.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/builders
copying pyfftw/builders/__init__.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/builders
copying pyfftw/builders/_utils.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/builders
creating build/lib.macosx-10.15-x86_64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/cache.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/__init__.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/scipy_fft.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/dask_fft.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/numpy_fft.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/scipy_fftpack.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/_utils.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/interfaces
UPDATING build/lib.macosx-10.15-x86_64-3.9/pyfftw/_version.py
set build/lib.macosx-10.15-x86_64-3.9/pyfftw/_version.py to '0.12.0'
running build_ext
error: Could not find any of the FFTW libraries
----------------------------------------
ERROR: Failed building wheel for pyfftw
Running setup.py clean for pyfftw
Failed to build pyfftw
Installing collected packages: pyfftw
Running setup.py install for pyfftw ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python#3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-p3twpksg/pyfftw_a5a93b1d21cd45bb90489634e47c82a5/setup.py'"'"'; __file__='"'"'/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-p3twpksg/pyfftw_a5a93b1d21cd45bb90489634e47c82a5/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/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-record-ljyxfo00/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/python#3.9/3.9.1_6/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyfftw
cwd: /private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-p3twpksg/pyfftw_a5a93b1d21cd45bb90489634e47c82a5/
Complete output (7 lines):
running install
running build
running build_py
UPDATING build/lib.macosx-10.15-x86_64-3.9/pyfftw/_version.py
set build/lib.macosx-10.15-x86_64-3.9/pyfftw/_version.py to '0.12.0'
running build_ext
error: Could not find any of the FFTW libraries
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/opt/python#3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-p3twpksg/pyfftw_a5a93b1d21cd45bb90489634e47c82a5/setup.py'"'"'; __file__='"'"'/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-p3twpksg/pyfftw_a5a93b1d21cd45bb90489634e47c82a5/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/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-record-ljyxfo00/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/python#3.9/3.9.1_6/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyfftw Check the logs for full command output.
It looks like the problem is mainly about the "Building wheel for pyfftw".
Alternatively you could install pyFFTW: pip install pyFFTW
Install instructions for Mac OS:
Install FFTW from homebrew:
brew install fftw
Set temporary environmental variables, such that pyfftw finds fftw:
export DYLD_LIBRARY_PATH=/usr/local/lib export LDFLAGS="-L/usr/local/lib"
export CFLAGS="-I/usr/local/include"
Now install pyfftw from pip:
pip install pyfftw
It has been suggested that macports might also work fine. You should then replace the LD environmental variables above with the right ones.
DYLD - path for libfftw3.dylib etc - find /usr -name libfftw3.dylib
LDFLAGS - path for fftw3.h - find /usr -name fftw3.h
check the python version once ,by typing python --version and if it is the latest version of python go to the code that you are typing and check the print statement as it is showing error in command prompt as you mentioned...in latest version of python you have to use parenthesis after print("you have to use parenthesis")
Refer to https://github.com/pyFFTW/pyFFTW/issues/303
Run brew install fftw
Install the lib with LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include -Wno-error=implicit-function-declaration" python setup.py install
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:\python 3.8\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\spogm\AppData\Local\Temp\pip-install-wul1u7y7\PyAudio\setup.py'"'"'; __
file__='"'"'C:\Users\spogm\AppData\Local\Temp\pip-install-wul1u7y7\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\spogm\AppData\Local\Temp\pip-record-m6e8jsq4\install-record.txt' --single-version-externally-
managed --compile --install-headers 'c:\python 3.8\Include\PyAudio'
cwd: C:\Users\spogm\AppData\Local\Temp\pip-install-wul1u7y7\PyAudio
Complete output (9 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.8
copying src\pyaudio.py -> build\lib.win32-3.8
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:\python 3.8\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\spogm\AppData\Local\Temp\pip-install-wul
1u7y7\PyAudio\setup.py'"'"'; file='"'"'C:\Users\spogm\AppData\Local\Temp\pip-install-wul1u7y7\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\spogm\AppData\Local\Temp\pip-record-m6e8jsq4\install-record.
txt' --single-version-externally-managed --compile --install-headers 'c:\python 3.8\Include\PyAudio' Check the logs for full command output.
if you are using windows:
Go to: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio
Download the file and then go to its directory in the cmd and type:
For win 32 bit:
pip install PyAudio‑0.2.11‑cp37‑cp37m‑win32.whl
For win 64 bit:
pip install PyAudio‑0.2.11‑cp38‑cp38‑win_amd64.whl
I cannot install the autoitlibrary for robot framework on windows 10, when I try the commands below:
pip install robotframework-autoitlibrary
OR
pip install -U robotframework-autoitlibrary --no-cache-dir --pre
It begins the installation, but then it gives me the error:
C:\WINDOWS\system32>pip install -U robotframework-autoitlibrary --no-cache-dir --pre
Collecting robotframework-autoitlibrary
Downloading robotframework-autoitlibrary-1.2.5.tar.gz (696 kB)
|████████████████████████████████| 696 kB 6.8 MB/s
Requirement already satisfied, skipping upgrade: pywin32 in c:\users\guilherme\appdata\roaming\python\python38\site-packages (from robotframework-autoitlibrary) (227)
Requirement already satisfied, skipping upgrade: pillow in c:\users\guilherme\appdata\local\programs\python\python38\lib\site-packages (from robotframework-autoitlibrary) (7.1.2)
Using legacy setup.py install for robotframework-autoitlibrary, since package wheel is not installed.
Installing collected packages: robotframework-autoitlibrary
Running setup.py install for robotframework-autoitlibrary ... error
ERROR: Command errored out with exit status 2:
command: 'c:\users\guilherme\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Guilherme\\AppData\\Local\\Temp\\pip-install-cuz2ut7_\\robotframework-autoitlibrary\\setup.py'"'"'; __file__='"'"'C:\\Users\\Guilherme\\AppData\\Local\\Temp\\pip-install-cuz2ut7_\\robotframework-autoitlibrary\\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\Guilherme\AppData\Local\Temp\pip-record-p7h0dafs\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\guilherme\appdata\local\programs\python\python38\Include\robotframework-autoitlibrary'
cwd: C:\Users\Guilherme\AppData\Local\Temp\pip-install-cuz2ut7_\robotframework-autoitlibrary\
Complete output (3 lines):
Don't think we need to unregister the old one...
%SYSTEMROOT%\system32\regsvr32.exe /S c:\users\guilherme\appdata\local\programs\python\python38\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll
AutoItLibrary requires win32com. See http://starship.python.net/crew/mhammond/win32/.
**----------------------------------------**
ERROR: Command errored out with exit status 2: 'c:\users\guilherme\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Guilherme\\AppData\\Local\\Temp\\pip-install-cuz2ut7_\\robotframework-autoitlibrary\\setup.py'"'"'; __file__='"'"'C:\\Users\\Guilherme\\AppData\\Local\\Temp\\pip-install-cuz2ut7_\\robotframework-autoitlibrary\\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\Guilherme\AppData\Local\Temp\pip-record-p7h0dafs\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\guilherme\appdata\local\programs\python\python38\Include\robotframework-autoitlibrary' Check the logs for full command output.
Details:
I've already tried running the prompt as Admin as you can see above, but didn't work too.
My python is the last version: Python 3.8.3 (64bit)
I've already have installed robot framework: Robot Framework 3.2.1 (Python 3.8.3 on win32)
Can someone help me fix this?!
Worked for me when I opened the command window as administrator.
I fixed this problem in my PC using pip install --upgrade robotframework. If this didn't work for you, try unistalling python and installing it again in Windows root filesystem: C:\.
I'm trying to install dryscrape python library using pip.
I tried :
pip install dryscrape
But i'm getting error, Traceback :
Collecting dryscrape
Using cached https://files.pythonhosted.org/packages/b5/75/c45f796ec5bc7f98c38b9ae425390ef5f4a76153c8b5af946adb97e7e622/dryscrape-1.0.tar.gz
Collecting webkit_server>=1.0
Using cached https://files.pythonhosted.org/packages/29/f2/f4f454cccde75e95359e91fa58f14497350dc97e58534f9003c77eca3dff/webkit-server-1.0.tar.gz
Requirement already satisfied: lxml in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from dryscrape) (4.4.2)
Requirement already satisfied: xvfbwrapper in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from dryscrape) (0.2.9)
Installing collected packages: webkit-server, dryscrape
Running setup.py install for webkit-server ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-install-ljjlzqoi/webkit-server/setup.py'"'"'; __file__='"'"'/private/var/folders/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-install-ljjlzqoi/webkit-server/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/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-record-gmf2apev/install-record.txt --single-version-externally-managed --compile
cwd: /private/var/folders/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-install-ljjlzqoi/webkit-server/
Complete output (4 lines):
running install
running build
sh: qmake: command not found
error: [Errno 2] No such file or directory: 'src/webkit_server'
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-install-ljjlzqoi/webkit-server/setup.py'"'"'; __file__='"'"'/private/var/folders/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-install-ljjlzqoi/webkit-server/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/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-record-gmf2apev/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
I was able to replicate the issue, so I tried googling the following:
Dryscrape no such file or directory found src/webkit_server
and the first result is This StackOverflow Question. I followed the instructions there are it solved the issue.
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