I try to install pyaudio in pycharm, and
I get this error
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe'
failed with exit status 2
I used pip install pyaudio command.
Copy comment:
I downloaded PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64.whl
try to install it using this command
pip install PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64
but it does not work and get this error
ERROR: Could not find a version that satisfies the requirement PyAudio-0.2.11-cp37-cp37m-win_amd64 (from versions: none)
ERROR: No matching distribution found for PyAudio-0.2.11-cp37-cp37m-win_amd64
Try this:
pip install pipwin
pipwin install pyaudio
pipwin is like pip, but it installs precompiled Windows binaries provided by Christoph Gohlke. Saves you a lot of manual googling and downloading.
Maybe this is not a solution to your error, but it is one of the easiest ways to install it on Windows.
You can simply grab the proper Wheel package based on current Python version from here
and then install it with pip install <PyAudio‑0.2.11-...>. Also, there is no need to have MSVC installed.
Related
How can i install pyaudio on visual studio
I tried
pip install pyaudio
but i'm getting error
after that i downloaded pyaudio files but not able to install them
provide me a solution
Possible duplicate: I can't install pyaudio on Windows? How to solve "error: Microsoft Visual C++ 14.0 is required."?
There are many ways to do this, I will tell here two.
Install PyAudio using pipwin
pip install pipwin
pipwin install pyaudio
This is the simple way. If it doesn't work follow the below method.
Install PyAudio using wheel
First check your python version.
Go to this website: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio
Find and download the correct version of your Python wheel. Here I will choose 3.7 and 64 bit.
This would be the right wheel for me: PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64.whl
Open any terminal in the downloaded folder and install it with the help of this command.
pip install PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64.whl
Note: Here instead of my wheel name, write the name of your wheel.
Reference: pyaudio install error windows | pyaudio error microsoft visual c++ 14.0 is required
I have successfully installed it....
just paste downloaded .whl file at C:\Users\bharat chauhan\AppData\Local\Programs\Python\Python39\Scripts & fromr here open cmd & run command pip install file name
I am having issues installing PyAudio and portaudio.
When I do python -m pip install pyaudio I get this error:
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\\2017\\Community\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
----------------------------------------
Command ""C:\Users\This PC\AppData\Local\Programs\Python\Python37-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\THISPC~1\\AppData\\Local\\Temp\\pip-install-3ock7jqh\\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\THISPC~1\AppData\Local\Temp\pip-record-14pe9p6y\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\THISPC~1\AppData\Local\Temp\pip-install-3ock7jqh\pyaudio\
So after looking that error up, I read I need to install portaudio. So I did python -m pip install portaudio and got this error:
Collecting portaudio
Could not find a version that satisfies the requirement portaudio (from versions: )
No matching distribution found for portaudio
I have no idea where to go from here now.
Try This, CMD as Administrator and run the following:
pip install pipwin
pipwin install pyaudio
portaudio is not a Python package, it's a C library that's entirely independent of Python, so you can't install it via pip.
See the PortAudio for website for details on the official way to get it and install it on your platform.
AFAIK, the official way to get it on Windows is to download the source and then follow the instructions in the Tutorial for compiling it yourself. You probably want to build it with the same compiler you use for Python C extensions, although I'm not sure if that's required.
Or, if you're using a third-party package manager like Chocolatey on Windows, there's a good chance it can install PortAudio.
Or, if you use Anaconda or Miniconda for your Python, the conda package manager knows how to install non-Python packages that Python packages depend on, including portaudio.
Finally, there seem to be a number of people providing unofficial pre-compiled PortAudio binaries for Windows. If you search for "portaudio windows binary" or "portaudio windows pre-compiled" you'll find a number of them. I have no idea how well-tested, up-to-date, etc. any of these are.
If you're using Anaconda/Miniconda, you should have used conda install pyaudio rather than pip install pyaudio in the first place. You should really only use pip for packages that aren't available on conda or conda-forge.
If you haven't set up conda-forge yet, you probably want to do that first:
conda config --add channels conda-forge
And then, this should be all you need:
conda install pyaudio
Unlike the pip package, which just assumes you have portaudio installed properly, the conda package will either automatically install portaudio as a dependency for pyaudio, or tell you why it can't.
The official PyAudio 0.2.11 does not support Python 3.7+, and trying to install results in the error C1083: Cannot open include file: 'portaudio.h'.
However, there are unofficial wheels for PyAudio that support 3.7+.
If you are using the official version, you must use Python 3.6 with PyAudio 0.2.11.
See http://people.csail.mit.edu/hubert/pyaudio/
If you get an error when trying to use pipwin to install this, you have to run it through python as windows doesn't recognize pipwin(at least for me)
pip install pipwin
python -m pipwin install pyaudio
I installed pyaudio on python 3.6.x without problem, but is not working on later versions.
py -m pip install pyaudio
works perfect on 3.6.x or earlier.
You can install Anaconda install pyaudio using it.
You must add Anaconda to path.
After installing Anaconda and adding to path then in your command prompt[cmd] type
conda install pyaudio.
And whala
On Ubuntu distributions you can first run
sudo apt install portaudio19-dev
and then reinstall pyaudio with pip again.
If you are using anaconda then this problem is because your versions are not upgraded.To upgrade all the packages simply run the following command in the terminal.
conda update --all
Use the Following Commands
pip install pipwin
pipwin refresh
pipwin install pyaudio
You can install Portaudio with
pip install port audio
you may also need to
pip install ConfigParser
Let me know if it's work.
I'm trying to install Jupyter on Python 3.7 and seem to be stumbling over this error again and again;
winpty/cywinpty.c(598): fatal error C1083: Cannot open include file: 'winpty.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
I get the same error when attempting to install pywinpty via pip.
I have installed & reinstalled the build tools to no avail and the command window is elevated - any ideas?
UPDATE: Not quite resolved in 3.7 - but it worked fine in 3.6, I've rolled back.
Temporarily, until standard way does not work for Python 3.7, you can install pywinpty manually by using the prebuilt wheel from Gohlke's collection and then install jupyter with pip.
To install manually (from cmd or Powershell) use:
pip install drive:\path\to\the\wheel\pywinpty-0.5.4-cp37-cp37m-win_amd64.whl
I've a concrete solution for you guys... I'm also facing the same issue like you guys as it arises with python3.7 or later versions... But don't worry
I currently have Python 3.9.2
Follow these Steps:-
--> Write these Commands in the cmd
Just install pywinpty by using Gholke s Collection
Now, just download it
Now, copy the path of the file, from where you have downloaded it... In my case it is
After successfully installed Pywinpty... now "pip install jupyter"
Then it's DONE... Now launch the notebook using "jupyter notebook"
In case its not been done... Make a comment below...
There's an easier way to install from Gohlke's collection, which is to use pipwin. Install pipwin using pip install pipwin and then use it in place of pip whenever something doesn't work.
I will leave this option here too. You can install the pywinpty 0.5.7 induvidually and then the rest of the installation can continue.
python -m pip install pywinpty==0.5.7
It worked for me.
I'm trying to install Jupyter on Python 3.7 and seem to be stumbling over this error again and again;
winpty/cywinpty.c(598): fatal error C1083: Cannot open include file: 'winpty.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
I get the same error when attempting to install pywinpty via pip.
I have installed & reinstalled the build tools to no avail and the command window is elevated - any ideas?
UPDATE: Not quite resolved in 3.7 - but it worked fine in 3.6, I've rolled back.
Temporarily, until standard way does not work for Python 3.7, you can install pywinpty manually by using the prebuilt wheel from Gohlke's collection and then install jupyter with pip.
To install manually (from cmd or Powershell) use:
pip install drive:\path\to\the\wheel\pywinpty-0.5.4-cp37-cp37m-win_amd64.whl
I've a concrete solution for you guys... I'm also facing the same issue like you guys as it arises with python3.7 or later versions... But don't worry
I currently have Python 3.9.2
Follow these Steps:-
--> Write these Commands in the cmd
Just install pywinpty by using Gholke s Collection
Now, just download it
Now, copy the path of the file, from where you have downloaded it... In my case it is
After successfully installed Pywinpty... now "pip install jupyter"
Then it's DONE... Now launch the notebook using "jupyter notebook"
In case its not been done... Make a comment below...
There's an easier way to install from Gohlke's collection, which is to use pipwin. Install pipwin using pip install pipwin and then use it in place of pip whenever something doesn't work.
I will leave this option here too. You can install the pywinpty 0.5.7 induvidually and then the rest of the installation can continue.
python -m pip install pywinpty==0.5.7
It worked for me.
When I tried to install pyzmq package in python, I always get this error message
PS C:\python37-32> pip install pyzmq
Failed building wheel for pyzmq
building 'zmq.libzmq' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visu
So I tried to fix it in two different ways:
Option 1: I downloaded Microsoft Visual C++ 14.00 --> It doesn't work
I downloaded the wheel "pyzmq-17.0.0-cp37-cp37m-win_amd64.whl" and tried to install it with the pip install comannd --> It doesn't work
Does anyone can give me an advice how I can install the package? That would be great
I try the following solution and it works for me. Solution:
Download an appropriate file from Unofficial Windows Binaries for Python Extension Packages.
For win10 as I use, just download: pyzmq-18.1.1-cp37-cp37m-win_amd64.whl
install this file from local with pip:
pip install download_directory/pyzmq-18.1.1-cp37-cp37m-win_amd64.whl
Upgrade your setup tools:
pip install --upgrade setuptools
I fixed it with this command:
pip install --upgrade pyzmq