I am trying to install the pyaudio module..I have tried several methods that were discussed previously on stackoverflow and other platforms related to pyaudio but nothing that were discussed were working correctly..I have installed all the required packages required to install pyaudio but nothing seems to be working.. I have the latest version of pip and i am using python 3.7 version...Here is what i am getting
ModuleNotFoundError: No module named 'pyaudio'
PyAudio hasn't been officially updated on PyPl yet to work with Python 3.7
First download the .whl file for your system from here. Then run pip again with this command:
pip install "path/to/your/.whl/file"
You can install pyaudio externally through website.
Website : https://www.lfd.uci.edu/~gohlke/pythonlibs/
Search for PyAudio and download it
Related
I am writing a program in Python, But I got an error
ModuleNotFoundError: No module named 'pyaudio'
Then I tried
pipwin install pyaudio
It came out
Requirement already satisfied: PyAudio==0.2.11 from file:///C:/Users/JIE_0305/pipwin/PyAudio-0.2.11-cp37-cp37m-win_amd64.whl
but I run the program again, it still
ModuleNotFoundError: No module named 'pyaudio'
How can I solve the problem?
You could download the whl file and call it when installing, this might work, according to this post. In the post, you have the links to the site where you can download the whl file.
It is also stated that it might work with Python 3.6 and not 3.7, try changing your Python version to 3.6, if the other options give not result.
Another solution is uninstalling pyaudio, then connecting to your virtual environement and install again withing your venv. It might solve your problem.
Sometimes it happens that a library successfully installed might be related to a Python version which is different than the one you used when running the program. You should check this also, I mean check to which Python version the pyaudio library is related. Use the same Python version in order to run the program.
Try refreshing first with
pipwin refresh
If not use pip instead
pip install pyaudio --> python2
pip3 install pyaudio --> python3
Please try to use the pip command instead.
python3 -m pip install pyaudio # for python 3
or
python -m pip install pyaudio # for python 2 or lower
I am trying to make a keylogger in Python that requires pyHook module. I tried pip install pyHook but it did not work.
So, I downloaded this package from https://www.lfd.uci.edu/ -
pyHook-1.5.1-cp37-cp37m-win_amd64.whl
Then I tried to install it using:
pip install pyHook-1.5.1-cp37-cp37m-win_amd64.whl
But is shows the error given in heading.
I even downloaded this package from same site - pyHook‑1.5.1‑cp37‑cp37m‑win32.whl
But none of them works. So what should I do? Please help.
My system is 64-bit and I use Python 3.8.
That happens because you are using python 3.8, and you need to install python 3.7 to run the pyhook library.
Try to uninstall your version 38 then install python 3.74, and finally run your command
pip install pyHook-1.5.1-cp**37**-cp**37**m-win_amd64.whl
These are the things I tried but nothing seems to work yet
pip install opencv-python
OR
python -m pip install opencv-python
gives an error
ERROR: Could not find a version that satisfies the requirement opencv-python (from versions: none)
ERROR: No matching distribution found for opencv-python
I downloaded the opencv windows package from the site and copied the PYD file into python's site-packages
but still cv2 cannot be imported
import cv2
gives an error as
DLL load failed while importing cv2: %1 is not a valid Win32 application.
Then I downloaded the opecv-control WHL file for python3.8/32bit (as my python is 32 bit) unofficial Binaries for python extension packages
and followed the step but still nothing happened
I am a beginner in this.
OpenCV hasn't been built for 3.8 yet according to the docs 3.7 is the highest version
https://pypi.org/project/opencv-python/
try downgrading your python to 3.7 or below. It would work.
Is pip up to date? You can run python -m pip install --upgrade pip to check.
It should work after that.
Please try the following:
import imp
imp.find_module("cv2")
Python Package Link
In the above link search opencv_python‑4.1.2‑cp36‑cp36m‑win_amd64.whl for python 3.6
64 bit and download that wheel file.
Install procedures:
Go to the site-package path in the python36
C:\Program Files\Python36\Lib\site-packages>
Then put the command pip install . Example,
C:\Program Files\Python36\Lib\site-packages>pip install F:\urllib3-1.25.7-py2.py3-none-any.whl
After this procedure import and check in IDLE.
If any doubt ping this. Good luck
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
I am getting ImportError: No module named 'Crypto' error when trying to run. I have installed pycrypto using pip install pycrypto and updated it also. Everything I have tried to far has been unsuccessful.
Tried:
reinstalling pycrypto,
updating both python and pycrypto
Any suggestions?
The error messages says, it does not able to find the module so please try to run below command,
#pip list -- # what does it show to you, if it would have installed successfully it will show you up there.
if "pip install pycrypto" doesn't work so try to download the source tar ball and try to install it from prompt.
pip download pycrypto
it will download tar.gz file.. so you can install using with pip install --no-index --find-links /path/to/some/dir/ pycrypto
for python3.5 version
python3.5 -m pip install pycrypto
this will install in python3.5 environment and after that you can able to import pycrypto module
Is python defined properly on your machine?
Make sure PATH environment variable has python's installation folder in it