PyAudio will NOT install - python

I've been trying to install PyAudio for a speechrecognition project but for everything I've tried nothing has worked. I tried to install with the latest version of python (3.7) only to noobishly find out that pyaudio isnt compatible with that yet and now im trying with 3.4.
However, whenever I run 'pip install PyAudio' I get an error message saying 'error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).' I have Microsoft Visual C++ 10.0 installed but it just doesn't work.
I'm at my wits end here please help.
(Running Windows 8.1 btw)

A good site to know about is Christoph Gohlke's page "Python Extension Packages for Windows" at https://www.lfd.uci.edu/~gohlke/pythonlibs/.

I ended up solving my own problem by downloading a different version of python, the one that worked for me was Python 3.6.5rc1 (but any 3.6 version seems to work) (Found here: https://www.python.org/downloads/release/python-365rc1/ ) I don't know the full details of why this worked as I'm not the best at this kind of thing yet but it worked when I retried python -m pip install pyaudio(this installed pyaudio successfully)

First upgrade pip to pi3 using following command:
pip3 install --upgrade setuptools pip
and then try with
pip3 install pyaudio
It will install but old versions PyAudio-0.2.11.tar.gz, PyAudio-0.2.11-cp36-cp36m-win_amd64.whl, PyAudio-0.2.11-cp36-cp36m-win_amd64.whl, not support to python 3.7 and after it

Download file from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio , get the file for your Python version and bitness. Paste the file of interest in location "C:\Users\YOUR_USER_NAME"
Install it with pip install filename.whl

Related

Installing pygame==dev.0.0.v12 [duplicate]

Currently unable to install Pygame via pip:
pip install pygame
Getting this message:
Concerned by it being termed an EOF error, is this an error in the module itself?
There's dev versions available as of now. Get them via
pip install pygame==2.0.0.dev6
Pygame is not compatible with Python 3.8 at the moment. I would recommend you to downgrade back to 3.7 and installing with pip there.
pip is doesn't have pygame up.
But there is a alternative that worked for me. https://www.pygame.org/wiki/CompileWindows
Read and follow the steps correctly and it should install.
you also need to update your code to pygame 2.0.0 code because it's only for 3.8
BTW you have to follow the SDL2 instructions since pygame 2.0.0 uses that.
the above commands worked for me today 3-15-20 with Python-3-8-0 on Linux Mint 19
to get IDLE to recognize pygame.
sudo pip3 install pygame==2.0.0.dev6
I also had to update pip first with
sudo pip3 install --upgrade pip
Pygame requires visual studio C++ build tools to install. Ensure you have these downloaded from here.
Open power shell window and make sure your internet is on
Then type the following command
pip install pygame
It will automatically download it for you and also install it
Again make sure your internet is on
I have python 3.8.2 and it worked on my pc

Failed building wheel for Twisted in Windows 10 python 3

I'm trying to install rasa-core on my windows 10 machine.
When installing with pip install, I get: Failed building wheel for Twisted
The same error appears when trying to install Twisted separately.
How could I solve this problem?
Download the .whl file from Unofficial Windows Binaries for Python Extension Packages
then after you are in the virtualenv
pip install C:\...yourpath...\Downlaods\<filename>
e.g.
pip install C:\...yourpath...\Downlaods\Twisted‑20.3.0‑cp38‑cp38‑win_amd64.whl
This worked for me..
Download Twister package from releases and install it eg.
pip install C:\...yourpath...\Downlaods\Twisted‑20.3.0‑cp38‑cp38‑win_amd64.whl
Install Twisted Using pip
Or Download https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted at this location
pip install Twisted-18.9.0-cp27-cp27m-win_amd64.whl
No conda install or Microsoft Studio.
Follow:
Download Twisted : https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted
In CMD: cd C:\Users\USERNAME\Downloads
pip install Twisted-version.whl
If you don't already have Microsoft Visual C++ installed do so from the following link. Make sure you match the correct version for the Python you have installed.
https://wiki.python.org/moin/WindowsCompilers#Microsoft_Visual_C.2B-.2B-_14.0_standalone:_Build_Tools_for_Visual_Studio_2017_.28x86.2C_x64.2C_ARM.2C_ARM64.29
Then install Twisted with: pip install Twisted[windows_platform]
Ensure you have [windows_platform] included.

Cannot install flask-mysqldb

I've been trying to install flask-mysqldb using pip install flask-mysqldb, but every time I try it gives me an error that says :
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
I've looked around a lot and no answer works for me. I searched the file in https://www.lfd.uci.edu/~gohlke/pythonlibs/ but its not there.
I am on Windows 7 x64.
Of course you can not find whl for flask-mysqldb, but you can find mysqlclient.
Download suitable version for you platform from https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient
Then, e.g. pip install mysqlclient-1.3.13-cp27-cp27m-win32.whl, depends what you download.
Finally, pip install flask-mysqldb again, this will work for you.
the same issue/problem I've also received,
That is flask_mysqldb 'no module'
first of all flask_mysqldb isn't installed through pip,
You have to install a suitable version for mysqlclient
for me it worked
I'm using window 10 having python3.8 installed....... to rectfiy the error use the follwing procedure:
click on the link
https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient and select mysqlclient‑1.4.6‑cp38‑cp38‑win32.whl (python3.8 a suitable version for me) download it
then search for the directory where downloaded ..... and then through command prompt type
pip install mysqlclient‑1.4.6‑cp38‑cp38‑win32.whl
and then
pip install flask_mysqldb
and done
I had the same problem
I was using python 3.8 and it's not supported by this package.
https://flask-mysqldb.readthedocs.io/en/latest/ : Flask-MySQLdb is compatible with and tested on Python 2.7, 3.5, 3.6 and 3.7
I recreated a virtual environment with python 3.7 and it all worked.
installing above must be made
For Windows
install pip install wheel
after go to on your browser ' https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python '
find the appropriate package for the python version and download.
and copy that file to C:\Users<your-computer-name> .
go to cmd again and write here pip install flask-mysqldb

How to download matplotlib for python 3.7 in windows 8?

How do you download matplotlib to windows so I can use it with python?
Every other question related to this that I've found on StackOverflow has led to the same problem which is that it keeps giving me the error:
python setup.py egg_info failed with error code 1 in C:\Users\Myname\AppData\Local\Temp\pip-install-9gc765gs\matplotlib\
Things I have tried (from the command prompt):
pip install matplotlib
pip install matplotlib-1.5.0-cp35-none-win_amd64.whl (which is the file I downloaded from SourceForge and is now stored in my computer)
pip install "matplotlib-1.5.0-cp35-none-win_amd64.whl"
python -mpip install -U matplotlib
I even tried tried:
pip install --upgrade setuptools
python -mpip install -U pip
prior to using the other commands to make sure everything was up to date.
Any help would be very appreciated.
Matplotlib has not been officially released for Python 3.7 yet.
As of this writing, a 3.7 version for Mac and Linux has been uploaded to PyPI earlier today, which means the Windows versions are probably coming very soon. pip will probably work after that.
Similarly, no 3.7 compatible versions have been put onto conda-forge or integrated into the main conda repo yet. I'm sure those will be coming in the next couple of weeks.
Until then, maybe installing from source will work?

Install opencv-python under python3 ubuntu 14.04

I want to use opencv under python 3 in Ubunto 14.04. I plan to use the PyCharm IDE to develop my program.
Inside PyCharm I choose, I set:
File/Settings/Project:HelloWorld/Project Interpreter/3.4.3(/usr/bin/python3.4)
Python 3.4.3 is the default version of python in Ubunto 14.04.
Then I try to add opencv-python package:
File/Settings/Project:HelloWorld/Project Interpreter/+ (where you add the package)
and the system gives me this error:
Executed command:
pip install opencv-python
Try to run this command from the system terminal. Make sure that you
use the correct version of 'pip' installed for your Python interpreter located at '/usr/bin/python3.4'.
DEPRECATION: --no-install, --no-download, --build, and --no-clean are deprecated. See https://github.com/pypa/pip/issues/906.
Downloading/unpacking opencv-python
Could not find any downloads that satisfy the requirement opencv-python
Cleaning up...
No distributions at all found for opencv-python
Storing debug log for failure in /root/.pip/pip.log
the error is the same when I run the command from terminal. I believe the problem is related to installing opencv under python3 but I am not sure I know if I can fix it. Please let me know your opinion.
Thanks
The fix is to update your pip and try again. This worked for me.
So, first:
pip install --upgrade pip
after that:
pip install opencv-python
First, you should not use install opencv-python, this is not the official opencv package.
Please, see:
**SOLVED** How to include libgtk2.0-dev and pkg-config in cmake when installing openCV on Ubuntu 16
If you want to install opencv, you can follow this website, that worked for me. You might need to apapt some parts (mainly version numbers, and paths during the cmake process).
I also faced similar issue in the windows and pip upgrade worked for me,
pip install --upgrade pip
and install using below command,
pip install opencv-python
As far as I can see from querying pip (using pip search opencv) there is no package called opencv-python I think the one you're looking for is pyopencv.
this issue appears to be almost identical

Categories