so I'm trying to install the keyboard module on a raspberry pi, but I can't use pip. Is there a way I can install it in a way that works? So far I have tried installing the extracted zip file from the pypi website, but nothing, not even the example code, works. I have attached a picture of what error I am getting when running the example code that comes in the folder. Thanks anyone for your help. Error message:
Related
I am using a windows system and I have no idea why after I use the command "pip3 install pyautogui" it installs successfully however when I click the play button in VS code it gives me an error in the terminal -
ERROR
import pyautogui
ModuleNotFoundError: No module named 'pyautogui'
I am a pure beginner to Python so I have no idea what might be causing this issue. My code is below:
CODE
import pyautogui
screenWidth, screenHeight = pyautogui.size()
print(screenWidth)
print(screenHeight)
Any idea what I can do to solve this? I have checked similar questions but the answers were targeted more towards Linux users.
sometimes pip can have problems with certain libraries.
to get around this, you should download the .whl or tar.gz file and install it directly from there.
this is the .tar.gz file for pyautogui: https://files.pythonhosted.org/packages/f0/76/7a0ec1013bc3559b7438f6773cba05ffaec600b8989be2d621a144e39b50/PyAutoGUI-0.9.53.tar.gz
download it and put it in your project directory.
then, just pip install {THE FILE NAME}.
for me that fixed it.
For the past few days I've been trying to download the textbox module for curses.textpad. Every attempt has failed (trying to do it on windows with Pycharm). Tried the pip command in CMD, downgrading python versions, but I always end up in a dead end. Searching it online wasn't much help. there's this one site (https://pypi.org/project/textbox/) but I believe it's a guide for the raspberry pi.
Is there a way to get it to work on windows 10 and if yes, how?
thank you in advance!
tried:
pip install in CMD (pip install textbox), downloading and upgrading Microsoft build tools as that was returning an error, downgraded python to 3.6.4 and downloaded rust as it was returning another error. For other details I'll try to be active in the comments
EDIT:
I apologize. I used textbox instead of Textbox so that was causing the error.
I want to try the pynput module, but it failed to work not giving me an error. I try to find the pynput module and when I pip install my terminal says that it is in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages. However I did not have a Frameworks folder in my library folder. I have looked everywhere and it does not exist. Any ideas what is happening?
I'm trying to make a voice-chat program, trying to use PyAudio since it is one of the more popular modules to work with when you try to make a voice chat program, plus more sources if I'll need help. Tried to download PyAudio with PipWin, tried to run it and it gave me the error message:
import _portaudio as pa
ModuleNotFoundError: No module named '_portaudio'
Now I downloaded the PortAudio tgz file from the download website and extracted it, but I cant seem to see how to make it work out with pyAudio. Also tried to use conda to install PyAudio but I can't seem to find where it put the file in, even when I search in the Anaconda3 folder.
I use Windows.
Did anyone have the same problem and if so how did you solve it?
I'm trying to create an app that uses the WebRTC VAD code.
I have found this: https://pypi.python.org/pypi/webrtcvad
The issue is that I cannot get it to work.
I extract the content into a folder but when It ry to run something it complains that _webrtcvad module is missing.
After a little research I tried to install the webRTC VAD module through pip. When doing this inside the folder I extracted into I get this:
When trying in another directory this happens:
How do I get this to work?
The problem was a bug in my webrtcvad's setup.py that caused it to use the wrong flags when compiling for Windows: it was using -DWEBRTC_POSIX instead of -DWIN32.
The fixed version has been pushed to pypi as version 2.0.9. I've confirmed that pip install webrtcvad works correctly on Windows 10.