install Pyaudio - whl - python

I tried to install PyAudio on Windows 7 64bit.
Installing it with pip throws dependency errors which end up in the question how to satisfy those.
So i tried to install it with wheel, the suggestion was to just use pip install:
D:\Programming\Kivy>dir
...
27.03.2015 08:11 113.556 PyAudio.whl
D:\Programming\Kivy>pip install PyAudio.whl
Downloading/unpacking PyAudio.whl
Could not find any downloads that satisfy the requirement PyAudio.whl
No distributions at all found for PyAudio.whl
Storing complete log in C:\Users\WindowsPro\AppData\Roaming\pip\pip.log
Any suggestion how to install pyaudio?

What version of pip do you have? Show the output pip -V. It might be necessary to have a current pip version 6 to install the whl. If this is not the case do pip install --upgrade pip (it might be necessary to start the console with admin rights).
Did you download the library from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio? I just installed this version with pip and it works.
As an alternative you can download the installer exe from http://people.csail.mit.edu/hubert/pyaudio/#downloads and install it like a regular program.

If you cant donwload it by pip install pyaudio you can download it from here.
When you found PyAudio, find the version of your Python (ex. 3.7.2 32bit).
DOWNLOAD THE RIGHT VERSION. Once you found the .whl of your python version, download it. Install it by opening cmd, going to the folder that you save it and write pip install "pyaudio_whl_file.whl"
And that's it

Related

problem with install pySFML pip install pySFML windows python 3.9, 3.7

I try to install
(env_py) PS D:\github\env_py\Scripts> pip install pySFML
After that I have:
ERROR: Could not find a version that satisfies the requirement pySFML (from versions: none)
ERROR: No matching distribution found for pySFML
I am using python 3.9 and 3.7 on windows
And there is the same problem
THANKS!
The package name seems to be sfml, not pySFML.
Try
pip install sfml
pip install pySFML doesnot work anymore. The best way is to download the wheel from the below link and install it through wheel file
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pysfml
To install the wheel file just go to the directory where you have downloaded the file and then just do
pip install xyz.wheel
Another way, on linux
sudo aptitude install python3-sfml
It is work
I can
import sfml
but on windows I still can not install
https://www.sfml-dev.org/download/bindings.php
Extract the archive, and copy the files to your installation of Python. If you don't know where it's located, by default it should be "C:\Python26" on Windows or "/usr/lib/python2.6" on Linux.
Once the files are properly installed, you're ready to use PySFML.amd following command
python setup.py build

Q: Command Line says "Failed to created process" when I try to pip install a package

5 and having no problems but I'm on windows 10 and I read online that I can't edit the system variables to add to the path to run programs from command line easily. I decided to uninstall python 3.5 and install python 3.8.2, which is the latest version, so that I could click on the “add to path” option.
The install went okays, but when I tried to go to the command prompt and install third party packages using pip, the command prompt kept saying "failed to create process"
I tried repairing the installations, trying different versions but the same thing kept happening.
Is there a fix for this? Help...
Thanks
C:\\WINDOWS\\system32>pip install pyperclip
failed to create process.
C:\\WINDOWS\\system32>
You will need to install the 64 bit python 3.8 dev module on the microsoft store, as the install from python webpage was most likely 32bit.
here is the link: https://www.microsoft.com/store/productId/9MSSZTT1N39L
C:\Users\Ben Woo>pip install pyperclip
Collecting pyperclip
Downloading https://files.pythonhosted.org/packages/f6/5b/55866e1cde0f86f5eec59dab5de8a66628cb0d53da74b8dbc15ad8dabda3/pyperclip-1.8.0.tar.gz
Installing collected packages: pyperclip
Running setup.py install for pyperclip ... done
Successfully installed pyperclip-1.8.0
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
C:\Users\Ben Woo>

Pip fails to install SciPy

I have been trying to install SciPy through pip with pip install scipy but it gives me the error Failed building wheel for scipy, promptly followed by Failed cleaning build dir for scipy.
I have tried upgrading pip through pip install --upgrade pip as suggested here, installing it through anaconda as suggested here as well as the solutions suggested by pip. Those solutions being:
- `git clean -xdf` (cleans all files)
- `git clean -Xdf` (cleans all versioned files, doesn't touch
files that aren't checked into the git repo)
And:
- `pip install .` (from a git repo or downloaded source
release)
- `pip install scipy` (last SciPy release on PyPI)
When I try to upgrade pip it gives:
Requirement already up-to-date: pip in c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages
When I try to install it through anaconda Windows gives: The program has stopped responding.
All help is appreciated and please feel free to leave a comment telling me is there is more information needed to help solve this issue. I am using Windows 10 as well as Python 3.6.2.
Thanks to jpmc26 in the comments for the solution:
You need to install the unofficial binary from: http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
To install it, execute: pip install C://Users/YOUR_USERNAME/Downloads/SCIPY_FILE
Make sure you use the correct version for your system (32 bit vs 64 bit) and for your Python version
You also need to look into site-packages and see if there's garbage there. If there is, delete it.
I've run into that issue before, and my resolution was to install needed dependencies. I seem to recall scipy requires numpy to be installed first. Perhaps try pip install numpy first?
The SciPy install page shows this:
pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose
I struggled as well trying to create a backwards compatible environment for some older tutorial scripts. I needed Scipy==0.18.2. So I searched on Anaconda and found:
conda install -c esri scipy
This worked without a hitch.
the best way to download the package via the following link:
https://pypi.org/project/scipy/#files
install this file through pip install: you can see
install downloaded package

Install python-igraph with the anaconda distribution (windows)

I have problems to install python-igraph on the anaconda distribution of python.
If I write pip install python-igraph (with the admin privileges) in the anaconda command, the installation doesn't work.
You can download a wheel installer from http://www.lfd.uci.edu/~gohlke/pythonlibs/#python-igraph and then install that wheel in your environment via
conda install pip
pip install *.whl
See this stackoverflow answer for ways to convert a *.exe into a wheel which can be installed as above: Can I install Python windows packages into virtualenvs?
Check the documentation on their site: http://igraph.org/python/
It says that you need to download the .msi installer, pip does not work under windows. That is probably because you need a C compiler and windows does not supply one by default.

pip install error: "Unknown archive format: .whl"

I'm new to virtualenv (on windows). I'm trying to use pip (1.5) install a local wheel file, but it is failing.
The command is:
pip install --no-index -f C:/Users/<User>/Download openpyxl
In the pip.log, I can see where it finds the correct file, but then doesn't try to install it:
Skipping link file:///C:/Users/<User>/Download/openpyxl-1.7.0-py2.py3-none-any.whl; unknown archive format: .whl
I have wheel (version 0.22) install globally as well as in the virtual environment. Any idea how I can get .whl to be a recognized format?
It appears wheel support is disabled.
Make sure that you have setuptools version 0.8 or newer installed, and that the use-wheel option is not set to false in $HOME/.pip/pip.conf.
Upgrading setuptools is easy enough if pip is already working:
pip install --upgrade setuptools
but note that older virtualenv versions can depend on older setuptools versions; you'll need to make sure that virtualenv is also up to date.
I have bumped into the same problem with wheel when downloaded requirements with:
pip install --download /pip_mirror six django_debug_toolbar
dir2pi /pip_mirror/
and tried to install them with:
pip install six-1.7.3-py2.py3-none-any.whl
Even though there is no any config at $HOME/.pip/pip.conf and
$ easy_install --version
setuptools 5.4.1
I still get:
unknown archive format: .whl
I have managed to avoid the problem by adding --no-use-wheel like this, so got only tar.gz files (instead of .whl)
pip install --no-use-wheel --download /pip_mirror six django_debug_toolbar
dir2pi /pip_mirror/
After this pip install --index-url=file:///pip_mirror/simple/ six went without any problems

Categories

Resources