I have been trying to install pycairo for three days and I was wondering wether anyone could reproduce the error or if I am slowly starting to turn mad. I am glad for any help or suggestions.
What I have tried:
I looked at the answers from Installation of PyCairo on Windows and How do you install PyCairo (Cairo for Python) on Windows?.
I tried installing pycairo using a file downloaded from Python Extension Packages for Windows but it says
ERROR: pycairo-1.19.1-cp38-cp38-win32.whl is not a supported wheel on this platform.
I used the following command pip install "C:\Users\...\Downloads\pycairo-1.19.1-cp38-cp38-win32.whl"
I tried installing pycairo via pip pip install pycairo which gives me a really long error message:
Collecting pycairo
Using cached pycairo-1.19.1.tar.gz (205 kB)
Installing collected packages: pycairo
Running setup.py install for pycairo ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\caspa\appdata\local\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\caspa\\AppData\\Local\\Temp\\pip-install-tjiuwot4\\pycairo\\setup.py'"'"'; __file__='"'"'C:\\Users\\caspa\\AppData\\Local\\Temp\\pip-install-tjiuwot4\\pycairo\\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\caspa\AppData\Local\Temp\pip-record-pbvjvlu1\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\caspa\appdata\local\programs\python\python37-32\Include\pycairo'
cwd: C:\Users\caspa\AppData\Local\Temp\pip-install-tjiuwot4\pycairo\
Complete output (18 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\cairo
copying cairo\__init__.py -> build\lib.win32-3.7\cairo
copying cairo\__init__.pyi -> build\lib.win32-3.7\cairo
copying cairo\py.typed -> build\lib.win32-3.7\cairo
running build_ext
building 'cairo._cairo' extension
creating build\temp.win32-3.7
creating build\temp.win32-3.7\Release
creating build\temp.win32-3.7\Release\cairo
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -DPYCAIRO_VERSION_MAJOR=1 -DPYCAIRO_VERSION_MINOR=19 -DPYCAIRO_VERSION_MICRO=1 -Ic:\users\caspa\appdata\local\programs\python\python37-32\include -Ic:\users\caspa\appdata\local\programs\python\python37-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.2\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tccairo/device.c /Fobuild\temp.win32-3.7\Release\cairo/device.obj
device.c
C:\Users\caspa\AppData\Local\Temp\pip-install-tjiuwot4\pycairo\cairo\pycairo.h(37): fatal error C1083: Datei (Include) kann nicht ge”ffnet werden: "cairo.h": No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.24.28314\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\caspa\appdata\local\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\caspa\\AppData\\Local\\Temp\\pip-install-tjiuwot4\\pycairo\\setup.py'"'"'; __file__='"'"'C:\\Users\\caspa\\AppData\\Local\\Temp\\pip-install-tjiuwot4\\pycairo\\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\caspa\AppData\Local\Temp\pip-record-pbvjvlu1\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\caspa\appdata\local\programs\python\python37-32\Include\pycairo' Check the logs for full command output.
I get the same error message when trying to install PyGoject which contains pycairo via pip.
I found something that should be supposed to fix the error, but unfortunatly the Link in the forum is dead. I went to the official download page (I belive) cairographics.org and its a dead link as well.
EDIT: I forgot to mention another thing I tried, I went to the Cairo Docs on getting started, but it's unfortunatly only for Ubuntu/Linux/IOS.
I've ran into a similar error to this as well, so here's what worked for me. Go to https://pycairo.readthedocs.io/en/latest/getting_started.html for more info. You'll have to run one of these five commands to set up pkg-config on your computer prior to running the install command.
Ubuntu/Debian: sudo apt install libcairo2-dev pkg-config python3-dev
macOS/Homebrew: brew install cairo pkg-config
Arch Linux: sudo pacman -S cairo pkgconf
Fedora: sudo dnf install cairo-devel pkg-config python3-devel
penSUSE: sudo zypper install cairo-devel pkg-config python3-devel
Then run:
import cairo
Hope that works!
I'm new with Python so I'm not really sure what's going on but this works for me.
Simply change the "pip" to "pip3" and it'll magically work.
As of this writing, I'm using Python 3.8 64-bit so my command is this:
pip3 install pycairo-1.19.1-cp38-cp38-win_amd64.whl
From what I understand, this seems to be an incompatibility since Python 2 life has ended and lost support just early this year. So pretty much all the tutorial is outdated and didn't work.
Related
After trying countless times I still cannot install PyAudio without getting this error
I have tried using many approaches including pipwin which doesn't get recognized as a real function, how can I install PyAudio?
ERROR: Command errored out with exit status 1:
command: 'C:\person\person\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\person\\AppData\\Local\\Temp\\pip-install-csmluknr\\pyaudio_4df1e1a74cd34515a3cf4ed28ceefeae\\setup.py'"'"'; __file__='"'"'C:\\Users\\person\\AppData\\Local\\Temp\\pip-install-csmluknr\\pyaudio_4df1e1a74cd34515a3cf4ed28ceefeae\\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\person\AppData\Local\Temp\pip-record-tj523gnc\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\person\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Include\PyAudio'
cwd: C:\Users\person\AppData\Local\Temp\pip-install-csmluknr\pyaudio_4df1e1a74cd34515a3cf4ed28ceefeae\
Complete output (17 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
copying src\pyaudio.py -> build\lib.win-amd64-3.7
running build_ext
building '_portaudio' extension
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
creating build\temp.win-amd64-3.7\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DMS_WIN64=1 "-IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\include" "-IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcsrc/_portaudiomodule.c /Fobuild\temp.win-amd64-3.7\Release\src/_portaudiomodule.obj
_portaudiomodule.c
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\include\pyconfig.h(117): warning C4005: 'MS_WIN64': macro redefinition
src/_portaudiomodule.c: note: see previous definition of 'MS_WIN64'
src/_portaudiomodule.c(29): fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.27.29110\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\person\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\person\\AppData\\Local\\Temp\\pip-install-csmluknr\\pyaudio_4df1e1a74cd34515a3cf4ed28ceefeae\\setup.py'"'"'; __file__='"'"'C:\\Users\\person\\AppData\\Local\\Temp\\pip-install-csmluknr\\pyaudio_4df1e1a74cd34515a3cf4ed28ceefeae\\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\person\AppData\Local\Temp\pip-record-tj523gnc\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\person\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Include\PyAudio' Check the logs for full command output.
You can install PyAudio by first installing:
pip install pipwin
Wait until it's done, then:
pipwin install pyaudio
It will work for people who have Python 3.9.
You can download PyAudio wheel file from here.
Then use pip install XXX.whl to install.
For example: pip install E:/PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64.whl
You can check how many bits your computer is, and then download the corresponding wheel.
PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64.whl supports python3.7 for windows 64-bit system.
PyAudio‑0.2.11‑cp37‑cp37m‑win32.whl supports python3.7 for windows 32-bit system.
If Anaconda is installed, we can also use the conda installation tool to install the module "PyAudio" in VSCode: (conda install PyAudio)
Reference: Environment in VSCode.
The suggestion by Aman above works for me, within the Anaconda3 environment, using the Anaconda3 Prompt.
First run this:
pip install pipwin
Then run this:
pipwin install pyaudio
Prior to this, I did install the Microsoft Visual Build Tools. It DID NOT help.
Similar issue found in previous Stackoverflow question.
This question already has answers here:
How to fix installation issues for PyAudio, PortAudio: "fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory"
(10 answers)
Closed 2 years ago.
Not able to install py audio: pip install pyaudio
using pycharm
now the error has changed to this, The module is listed (PyAudio-0.2.11.tar.gz) but then it returns an error (ERROR: Command errored out with exit status 1:):
(venv) C:\Users\admin\PycharmProjects\pythonProject2>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\admin\pycharmprojects\pythonproject2\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\admin\
\AppData\\Local\\Temp\\pip-install-oygnlr22\\pyaudio\\setup.py'"'"'; __file__='"'"'C:\\Users\\admin\\AppData\\Local\\Temp\\pip-install-oygnlr22\\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\admin\AppData\Local\Temp\pip-record-mnp5i0dx\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\
users\admin\pycharmprojects\pythonproject2\venv\include\site\python3.9\pyaudio'
cwd: C:\Users\admin\AppData\Local\Temp\pip-install-oygnlr22\pyaudio\
Complete output (17 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
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
creating build\temp.win-amd64-3.9\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DMS_WIN64=
1 -Ic:\users\admin\pycharmprojects\pythonproject2\venv\include -IC:\Users\admin\AppData\Local\Programs\Python\Python39\include -IC:\Users\admin\AppData\Local\Progr
ams\Python\Python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\include -IC:\Program Files (x86)\Windows Kit
s\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared -
IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Window
s Kits\10\include\10.0.18362.0\cppwinrt /Tcsrc/_portaudiomodule.c /Fobuild\temp.win-amd64-3.9\Release\src/_portaudiomodule.obj
_portaudiomodule.c
C:\Users\admin\AppData\Local\Programs\Python\Python39\include\pyconfig.h(117): warning C4005: 'MS_WIN64': macro redefinition
src/_portaudiomodule.c: note: see previous definition of 'MS_WIN64'
src/_portaudiomodule.c(29): fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\cl.exe' failed with exit c
ode 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\admin\pycharmprojects\pythonproject2\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys
.argv[0] = '"'"'C:\\Users\\admin\\AppData\\Local\\Temp\\pip-install-oygnlr22\\pyaudio\\setup.py'"'"'; __file__='"'"'C:\\Users\\admin\\AppData\\Local\\Temp\\pip-ins
tall-oygnlr22\\pyaudio\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compil
e(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\admin\AppData\Local\Temp\pip-record-mnp5i0dx\install-record.txt' --single-version-externally-managed
--compile --install-headers 'c:\users\admin\pycharmprojects\pythonproject2\venv\include\site\python3.9\pyaudio' Check the logs for full command output.
First run your CMD as Administrator and run the following
pip install pipwin
pipwin install pyaudio
This question already has answers here:
How do I install PyAudio on Python 3.7?
(9 answers)
Closed 3 years ago.
I tried installing pyaudio using pip but I am getting an error.
C:\Users\divya>pip install pyaudio
Collecting pyaudio
Using cached https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz
Installing collected packages: pyaudio
Running setup.py install for pyaudio ... error
Complete output from command "c:\program files (x86)\python37-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\divya\\AppData\\Local\\Temp\\pip-install-5eoc_ykq\\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\divya\AppData\Local\Temp\pip-record-xhzsi_4l\install-record.txt --single-version-externally-managed --compile:
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
creating build\temp.win32-3.7
creating build\temp.win32-3.7\Release
creating build\temp.win32-3.7\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT "-Ic:\program files (x86)\python37-32\include" "-Ic:\program files (x86)\python37-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcsrc/_portaudiomodule.c /Fobuild\temp.win32-3.7\Release\src/_portaudiomodule.obj
_portaudiomodule.c
src/_portaudiomodule.c(29): fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.22.27905\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
----------------------------------------
Command ""c:\program files (x86)\python37-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\divya\\AppData\\Local\\Temp\\pip-install-5eoc_ykq\\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\divya\AppData\Local\Temp\pip-record-xhzsi_4l\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\divya\AppData\Local\Temp\pip-install-5eoc_ykq\pyaudio\
please see this error and help me out I am getting similar error while installing pyGTK too. I tried upgrading pip too but nothing worked for me.
There is no prebuilt package for Python 3.7 on Windows (you have a 32 bit version probably) so you need to prepare build environment on your PC to use this package. Easier would be finding the wheel for 3.7 as some packages are quite hard to build on Windows.
You can find your wheel here
Check your python version and download your correct wheel
after that you can type to install:
pip install <yourwheel.whl>
I am trying to install PyAudio using pip install PyAudio, but I get this error:
(venv) C:\Users\PC\PycharmProjects\untitled>pip install PyAudio
Collecting PyAudio
Using cached https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-
0.2.11.tar.gz
Installing collected packages: PyAudio
Running setup.py install for PyAudio ... error
Complete output from command C:\Users\PC\PycharmProjects\untitled\venv\Scripts\python.exe -u -c "import setuptools, tokenize;_
_file__='C:\\Users\\PC\\AppData\\Local\\Temp\\pip-install-z9jx52y1\\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\PC\AppData\Local\T
emp\pip-record-dzl_covu\install-record.txt --single-version-externally-managed --compile --install-headers C:\Users\PC\PycharmProj
ects\untitled\venv\include\site\python3.7\PyAudio:
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
creating build\temp.win32-3.7
creating build\temp.win32-3.7\Release
creating build\temp.win32-3.7\Release\src
cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -IC:\Users\PC\PycharmProjects\untitled\venv\include -IC:\Users\PC\AppData\Local\Pro
grams\Python\Python37-32\include -IC:\Users\PC\AppData\Local\Programs\Python\Python37-32\include "-IC:\Program Files (x86)\Windows
Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)
\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Fi
les (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" /Tcsrc/_portaudiomodule.c /Fobuild\temp.win32-3.7\Release\src/_portaudiomodule.o
bj
error: command 'cl.exe' failed: No such file or directory
----------------------------------------
Command "C:\Users\PC\PycharmProjects\untitled\venv\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\PC\\
AppData\\Local\\Temp\\pip-install-z9jx52y1\\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\PC\AppData\Local\Temp\pip-record-dzl_covu\
install-record.txt --single-version-externally-managed --compile --install-headers C:\Users\PC\PycharmProjects\untitled\venv\inclu
de\site\python3.7\PyAudio" failed with error code 1 in C:\Users\PC\AppData\Local\Temp\pip-install-z9jx52y1\PyAudio\
You are using pip version 10.0.1, however version 19.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
I also tried using pip install PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64.whl, but I got the same problem...
Run your command prompt as administrator and add Full path of cl.exe to Path environment variable.
With my Anaconda python27 install on Windows 64 bit, pip doesn't work anymore..
First of all, I tried to upgrade it, but it was up to date :
C:\Users\Administrateur>python -m pip install --upgrade pip
Requirement already up-to-date: pip in c:\program files\anaconda\lib\site-packages
I also tried to upgrade setuptools, it wasn't updated but it doesn't helped.
I recently tried to install few modules and it end each time with an error. For example, If I want to install pyx I get the following error message :
No files/directories in
c:\users\...\appdata\local\temp\pip-build-soh1bb\pyx\pip-egg-info (from PKG-INFO)
If I open a windows in my temp folder, I see that the files are collected then deleted just after. Also, this is not the same folder that the one cited in error.
If I try to install fiona, the error is different :
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\Bin\cl.exe /c /nologo
/Ox /MD /W3 /GS- /DNDEBUG "-IC:\Program Files\Anaconda\include" "-IC:\Program
Files\Anaconda\PC" /Tpfiona/_transform.cpp /Fobuild\temp.win-amd64-
2.7\Release\fiona/_transform.obj
_transform.cpp
fiona/_transform.cpp(564) :
fatal error C1083: Impossible d'ouvrir le fichier includeÿ: 'cpl_conv.h'ÿ:
No such file or directory error: command 'C:\\Program Files (x86)\\Microsoft
Visual Studio 9.0\\VC\\Bin\\cl.exe' failed with exit status 2
Failed building wheel for fiona
Failed to build fiona
And finally :
Command ""C:\Program Files\Anaconda\python.exe" -u -c "import setuptools, tokenize;__file__='c:\\users\\...\\appdata\\local\\temp\\pip-build-h2ns8z\\f iona\\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\...\appdata\local\temp\pip-fme6kj-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in
c:\users\...\appdata\local\temp\pip-build-h2ns8z\fiona\
I never had this problem before and pip is updated correctly, last module I installed is pygame could it be related ?
Looks like you install is missing libgdal package. Install it first.
Download Gdal Binaries