I installed the pyautogui module and dependencies via pip-3.2 on my raspi correctly, However when I am trying to do
import pyautogui
I am getting an import error:
ImportError: No module named pyautogui
What am I doing wrong? Did the command change? Sorry I am a total python Noob, any help is greatly appreciated :D
To install PyAutoGUI, install the pyautogui package from PyPI by running pip install pyautogui (on Windows) or pip3 install pyautogui (on macOS and Linux). (On macOS and Linux, pip refers to Python 2's pip tool.)
8 -m pip install pyautogui - and it should install pyautogui in Python whic PyCharm uses to run your code. On Windows you get C:\path\to\python.exe and more importat is to use this full path to install module C:\path\to\python.exe -m pip install pyautogui in console/terminal/cmd.exe (not in python).
PyAutoGUI is essentially a Python package that works across Windows, MacOS X and Linux which provides the ability to simulate mouse cursor moves and clicks as well as keyboard button presses.
It might be because you're trying it from a python 2.x shell. Instead try this command on a python3 shell and try importing the same.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With