Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

import error for pyautogui

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

like image 353
Nixxon Avatar asked Jul 26 '15 08:07

Nixxon


People also ask

How do I import Pyautogui into Vscode?

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.)

How do I import Pyautogui to PyCharm?

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).

What is Pyautogui 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.


1 Answers

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.

like image 85
Sentient07 Avatar answered Oct 08 '22 00:10

Sentient07