>>>import pyautogui
bash: import: command not found
I put
import pyautogui
print(dir(pyautogui))
into a script and ran it:
pi@raspberrypi:~ $ nano pyautogui.py
pi@raspberrypi:~ $ python pyautogui.py
['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'pyautogui']
['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'pyautogui']
pi@raspberrypi:~ $
bash: import: command not found
I put
import pyautogui
print(dir(pyautogui))
into a script and ran it:
pi@raspberrypi:~ $ nano pyautogui.py
pi@raspberrypi:~ $ python pyautogui.py
['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'pyautogui']
['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'pyautogui']
pi@raspberrypi:~ $