Reputation: 1
I downloaded pyautogui from here but it will not let me import it or use any functions it allows a new python file, even though I have run the setup file in that file and have written
pip install pyautogui
and
import pyautogui
and
import module pyautogui
In the python IDLE module.
I am doing this in python 3.4.2 and am just getting returned with errors saying that it is not found.
Edit:
Python 3.4.2 (v3.4.2:ab2c023a9432, Oct 6 2014, 22:15:05) [MSC v.1600 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> pip install pyautogui
SyntaxError: invalid syntax
>>>
The word "install" is highlighted in red
Upvotes: 0
Views: 320
Reputation: 11
try this code for installing pyautogui using Python:-
import os
os.system("pip install pyautogui")
And then try to import library
Upvotes: 1