Unable to install pyaudio in VScode 3.8.5 on windows - python

I try to install pyaudio on windows using pip from a wheel package as follow:
pip install PyAudio-0.2.11-cp38-cp38m-win_amd64.whl
unfortunately it raise an error as presented below. The error message tells that my pyaudio wheel unable to be founded.
WARNING: Requirement 'PyAudio‑0.2.11‑cp38‑cp38m‑win_amd64.whl' looks like a filename, but the file
does not exist
ERROR: PyAudio‑0.2.11‑cp38‑cp38m‑win_amd64.whl is not a valid wheel filename.
What should I do to solve this issue and install pyaudio correctly ?

The error message was raised due to pip unable to locate the wheel file. Try to specify a full path such as:
pip install D:/../<file_name>.whl
or move your wheel file to the same directory as your pip.

Related

How can i install scikit-image module for Python on Windows properly?

Platform: Windows 10 Pro 20H2, Python 3.8.7
I need to install image-match module, but when install is coming to required scikit-image module, i am recieving error:
Running setup.py install for scikit-image ... error
ERROR: Command errored out with exit status 1:
WARNING: The wheel package is not available.
Surfing Internet i found out that scikit-image module wheel for windows is not available. I tried to install scikit-image with binary .whl file. Looks like module installed and i tried to install image-match again. Now i am recieving this:
Building wheel for image-match (setup.py) ... done
Created wheel for image-match: filename=image_match-1.1.2-py3-none-any.whl size=21230 sha256=bb2a55e18dac36ab10056523f66383756fac637eafe4f12d4e12df9a3da3ad8c
Stored in directory: c:\users\user\appdata\local\pip\cache\wheels\70\62\40\3511b893ee0655b25176450c3b0405caf4ded0f44927de3ebe
Building wheel for scikit-image (setup.py) ... error
ERROR: Command errored out with exit status 1:
Partial import of skimage during the build process.
I am not that good in Python, so what am i doing wrong?
Install directly from Github Link for some reason PyPI has an older version of the branch.
Use this Command pip install git+https://github.com/EdjoLabs/image-match

Can't install PyAudio from PyPI wheel files

I want to make a speech recognition program using SpeechRecognition, which needs PyAudio to work.
I tried installing it with pip, but it says that portaudio.h is missing. So I went on PyPI and downloaded a .whl file from there (https://pypi.org/project/PyAudio/#files). But no matter what file with what version or what platform I download, pip just keeps saying that the wheel is not supported.
First try:
ERROR: PyAudio-0.2.11-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.
Second try:
ERROR: PyAudio-0.2.11-cp36-cp36m-win32.whl is not a supported wheel on this platform.
Third try:
ERROR: PyAudio-0.2.11-cp35-cp35m-win32.whl is not a supported wheel on this platform.
There's also someone else who posted about the same problem (PyAudio Wheel is Unsupported?), but didn't get any answers, that's why I posted my own.
PS. I checked my architecture, it's a Win32.
There are some wheels built by a third party here:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio
I finally found a solution. I used a tool named pipwin, it's like pip but the difference is that it installs all the necessary dependencies. It can easily be installed so :
pip install pipwin
And then :
pipwin install pyaudio

Installing PyAutoGUI Error in pip.exe install pyautogui

I have been installing PyautoGui on my WIN10 PC. But I am getting the following error, i have been getting a lot of errors jut to get this far.
i have been reinstalling python so its destination folder is in C:\Python instead of C:\Users\Home\AppData\Local\Programs\Python\Python35-32 mabye thats why ? How do i fix this ?
C:\Python\Scripts>pip.exe install pyautogui Collecting pyautogui
Using cached PyAutoGUI-0.9.33.zip Collecting pymsgbox (from pyautogui)
Using cached PyMsgBox-1.0.3.zip Collecting PyTweening>=1.0.1 (from
pyautogui) Using cached PyTweening-1.0.3.zip Collecting Pillow (from
pyautogui) Using cached Pillow-3.3.1-cp35-cp35m-win32.whl Collecting
pyscreeze (from pyautogui) Using cached PyScreeze-0.1.8.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Home\AppData\Local\Temp\pip-build-kxm3249e\pyscreeze\setup.py",
line 6, in
version=import('pyscreeze').version,
File "c:\users\home\appdata\local\temp\pip-build-kxm3249e\pyscreeze\pyscreeze__init__.py",
line 21, in
from PIL import Image
ImportError: No module named 'PIL'
Command "python setup.py egg_info" failed with error code 1 in
C:\Users\Home\AppData\Local\Temp\pip-build-kxm3249e\pyscreeze\
I encountered the same error message as you did. This workaround worked for me. Try these steps in order...
Install PyScreeze 0.1.7.
Update PyScreeze to 0.1.8.
Install PyAutoGui.
I hope this helps.
I also encountered the same error (albeit on Ubuntu 14.04). The missing module PIL is named Pillow (As said in this answer). So what I tried was (same in MacOS I think):
sudo pip3 install pillow
That translated to Windows would be:
pip.exe install pillow
Hope this helps you further.
Instead of letting PyautoGUI get all the packages for you.
Install all of them individually. Then, run the pip install --upgrade _packageName_
Then run pip install pyautogui.
Hope this helps.
I'm happy to report that this installation error has been fixed as of version 0.9.34. All you have to do is install or update PyAutoGUI from PyPI.
try
pip uninstall pyautogui
then
pip install pyautogui
There is a possibility that on windows it is not rightly configured on windows path and therefore it cant find the module, to fix this try:
Control Panel \ System and Security \ System
then click: Environment Variables, and double click on path and append the directory you want to use.
full explanation on: https://helpdeskgeek.com/windows-10/add-windows-path-environment-variable/
you can also try:
Cmd:
python -m pip install < module >
git clone https://github.com/USERNAME/REPOSITORY
or
To append to PYTHONPATH:
IDE:
import sys
sys.path.append('< path >')

Having trouble with PyEnchant installation on El Capitan

It's possible I should just open this is an issue on the Enchant package, but it could definitely be something I'm missing too. I'm using El Capitan and python 2.7. I tried a few things:
pip install penchant seems to successfully install pyenchant-1.6.6, but when I try to import enchant I get the error ImportError: The 'enchant' C library was not found. Please install it via your OS package manager, or use a pre-built binary wheel from PyPI. I followed the advice here and upgraded pip.
I followed the advice here and started with brew install enchant, but that gave the error
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "glib--patch"
Download failed: https://gist.githubusercontent.com/jacknagel/af332f42fae80c570a77/raw/7b5fd0d2e6554e9b770729fddacaa2d648327644/glib-hardcoded-paths.diff
I also downloaded the wheel here (second-to-last link) and tried to pip install it, but got the error that it is not a supported wheel on this platform.
Thoughts? Thanks.

h5py installment error: cannot find -lhdf5

I am trying to install the keras package for python on a openSUSE server where I don't have root access. According to the instructions, I should install numpy, scipy, pyyaml, Theano, HDF5 and h5py. The server already has numpy and spicy, I installed pyyaml and Theano using "pip install XXX --user".
I downloaded HDF5 source and installed it by running the ./configure, and it was installed successfully, under folder "/home/myname/software/hdf5". Now the last step is to install h5py, where I was stuck in and can't find solutions online.
I tried:
HDF5_DIR=~/software/hdf5/ pip install h5py --user
And getting the following error:
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld:
cannot find -lhdf5
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld:
cannot find -lhdf5_hl
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
Then I tried:
CFLAGS="-I/usr/lib/openmpi/include/ -I/home/myname/software/hdf5/include" LDFLAGS="-L/home/myname/software/hdf5/lib" pip install h5py --user
But getting the same error. I downloaded the source and tried:
HDF5_DIR=~/software/hdf5/ python setup.py install --user
But still getting the same error. It seems that the installer is not trying to look for things in my customized hdf5 folder. Could you help me on this? Thank you very much!

Categories