PyHook for Python 3.6 - python

Hello does anyone have succeded in installing pyHook on the last python version
C:\Users\T>python --version
Python 3.6.4
C:\Users\T>pip install pyHook
Collecting pyHook Could not find a version that satisfies the requirement pyHook (from versions: ) No matching distribution found for pyHook
C:\Users\T>pip install pyHook-1.5.1-cp36-cp36m-win_amd64.whl
pyHook-1.5.1-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.
Everythingi've try so far are not working at all.

1) You're gonna wanna visit https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyhook download the version with "36" in the name.
2) Open cmd, git cmd, or git bash,
*On cmd change directory into the location where pip and the whl file are stored, type pip install (whl name with 36 in the version name)
*git cmd is the same thing
*On git bash, cd into the directory with the whl and pip and type ./pip install (whl name)
I had the same problem as you, but it turned out the only problem was the file version I was downloading. Make sure you're downloading the version that's compatible with the Python you're using.

Related

How do I fix the ERROR: Could not find a version that satisfies the requirement for uncompyle6-3.7.4-py3.8?

I have downloaded the uncompyle6-3.7.4-py3.8 egg file from pypi.org website in order to decompile a .pyc file. When I am trying to install it using the pip command in command prompt pip install uncompyle6-3.7.4-py3.8, I get the following error:
ERROR: Could not find a version that satisfies the requirement uncompyle6-3.7.4-py3.8 (from versions: none)
ERROR: No matching distribution found for uncompyle6-3.7.4-py3.8
I am using the latest version of Python (3.8). I tried to download another uncompyle file for the earlier 3.7 version, but even then I get the same error. I have also upgraded pip to its latest version. On their website it is mentioned that for Python 3.7 and above, the code in decompyle3 is generally better, yet I get the same error for pycdc.
How could I fix this error? Thank you!
You can install .whl files with pip, not .egg. In order to install .egg file you need easy_install.
Try this command:
python -m easy_install https://files.pythonhosted.org/packages/ef/91/07f46d34bf8d3bf385785b98b13ebddaa414638f553d9b33c8aa320f45cd/uncompyle6-3.7.4-py3.8.egg

pyaudio installed, "No module named 'pyaudio'"

$ python -m pip install pyaudio
Requirement already satisfied: pyaudio in c:\users\user\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (0.2.11)
$ py sound.py
Traceback (most recent call last):
File "sound.py", line 1, in <module>
import pyaudio
ModuleNotFoundError: No module named 'pyaudio'
pyaudio was installed via a .whl file. This is on Windows 10, python version 3.8.5
this mostly happens if you have installed two python versions.
here you are using "python". $ python -m pip install pyaudio
and to execute you are using "py". $ py sound.py
run it using python sound.py
Visit this link https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio and download the corresponding wheel to your python version, then type "pip install {the wheel you installed}", if this doesn't work then make sure you moved the wheel from Downloads to your terminal path
I could resolved PyAudio error after a long search
Hope this can help someone doing speech text recognition and trying to install PyAudio :
First you find the python version using : python --version (check both Pycharm and JupyterLab as I had 3.7.6 and 3.10.4 different version and move to correct directory - I pasted the same version whl file in same directory "may be there is another way of doing it - suggestions welcome" )
Once this file is placed in the same directory - "PyAudio-0.2.11-cp37-cp37m-win_amd64.whl" you can use pip install PyAudio-0.2.11-cp37-cp37m-win_amd64.whl directly
Other findings :
In case the version and file not matching you will get this error
ERROR: PyAudio-0.2.11-cp310-cp310-win32.whl is not a supported wheel
on this platform.
simple pip install pyaudio will not work (As read on internet its not working beyond 3.6)
Go to 'file' tab> then 'settings' option> then in the search bar look for 'Python Interpreter', Open that.
There u will have an option of adding a package, one somewhat like this '+' sign. Click over it and then many packages will show up. There either type or search for 'PyAudio' and then click the 'Install Package' button.
You are done then.
Good to go!!
To solve it:
open "Command Prompt" and type cls.
click on this Link (https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio)
install a package based on your version of python and choose either 32 or 64 bit.
after the download type cd download in "Command Prompt"
press "Enter"
then type pip install py
finally click on "tab", then "Enter".
Your pyaudio is installed!

How to get Python packages installed as .exe to run on Windows 10; "failed to create process"

After installing Python 3.5.1 on Windows 10 x64, cpplint installed from pip produces the error: failed to create process. There seems to be a possibly related issue with pip related to having a space in the path, which exists in my use case. It seems to be related to how the exe is created. How can this error be remedied? Reinstalling Python and cpplint does not solve the problem.
C:\Users>python -V
Python 3.5.1
C:\Users>pip list
pip (7.1.2)
setuptools (18.2)
C:\Users>pip -V
pip 7.1.2 from c:\users\john hagen\appdata\local\programs\python\python35\lib\site-packages (python 3.5)
C:\Users>pip install cpplint
Collecting cpplint
Using cached cpplint-0.0.6.tar.gz
Installing collected packages: cpplint
Running setup.py install for cpplint
Successfully installed cpplint-0.0.6
C:\Users>where.exe cpplint
C:\Users\John Hagen\AppData\Local\Programs\Python\Python35\Scripts\cpplint.exe
C:\Users>cpplint
failed to create process.
Yep, this is a pip bug.
The workaround is to add quotes around the path in the first line of generated python scripts in the \Scripts\ directory. In the case of cpplint this is 'cpplint-script.py'. In your case the generated first line should something like:
#!c:\users\john hagen\appdata\local\programs\python\python35\python.exe
and should be edited to:
#!"c:\users\john hagen\appdata\local\programs\python\python35\python.exe"

.whl is not a valid wheel filename, storing debug log for failure in C:\

I am having trouble installing a wheel file via pip.
I open my command prompt
write the following in the prompt
C:/Python34/Scripts/pip install C:/Users/Hamsa/Downloads/pygame.whl
Then I get this message
pygame.whl is not a valid wheel filename. Storing debug log for failure in C:\Users\Hamsa\pip\pip.log
I don't what to do and I need your help.
You should correct name format for installing wheel file. Because wheel file name also includes many information such as the version of program, supported python version. Your command should be like the command below.
pip install pygame‑1.9.3‑cp34‑cp34m‑win_amd64.whl
If the answer suggested by #Harun doesnot work, try
python -m pip install <whl file name with complete path>.whl
If u have more than 1 Python versions installed , check which version of python is being used to install the package using:
python -v
Also refer to pygame readme for an official installation guide.

Installing kivy with pip

I get this error when trying to install kivy.
kivy-1.8.9-cp34-none-win_amd64.whl is not supported wheel on this platform.
I run Python 3.4 and have installed these modules:
Pip 6.0.8
Pygame 1.9.2a0
Setuptools 14.3.1
Which is all the latest, so i have no idea what the problem is. I am so excited to create application, with kivy! Annoy me so much that i just can't install it.
I have been following this Tutorial by Sentdex, if anyone is familiar with it.
OS: Windows 8.1 Pro, 64bit
How to install Kivy on windows 10
Download wheels from here (you have to download both pygame and kivy, if you are running 32 bit python3.5 then download Kivy-1.9.1+sdl2-cp35-none-win32.whl and pygame-1.9.2a0-cp35-none-win32.whl or choose the appropriate one for your needs.)
Place installed wheels into same folder.
Run (Windows) CMD as administrator and go into created folder by using cmd (where you placed your wheels)
pip install by copy/paste name of the wheel and push the enter button. For example: pip install pygame-1.9.2a0-cp35-none-win32.whl and pip install Kivy-1.9.1+sdl2-cp35-none-win32.whl
Now you can use Kivy
Good Luck!!
I just wanted to add that I had a similar problem and found that the file name of the wheel is of dire importance. I had downloaded a duplicate copy of the wheel and Windows had auto-renamed it with the suffix "(2)". Using the original file name without this suffix did the trick. Hope that helps someone in the future.
Try to change the python location and the python lib on the path in
environment variable.
ex: path:
C:python/python3.4;
C:python/python3.4/lib

Categories