I have built a simple auto-clicker with python. The script runs properly when executing via cmd with the "python.exe F:\Directories\moreDirectories\myScript.py" command, but not on double-clicking the icon.
import pyautogui
pyautogui.click(600,250)
exit = input("press enter to close the program")
I'm assuming the problem is with importing pyautogui, as it runs if I remove all the pyautogui parts (making it the most useless program ever, only prompting the user to close it). I made a batch file to run it via cmd more easily, but as it happens it opens the command prompt right on the spot it is supposed to click (not that it would've been a very elegant solution anyways). I have pyautogui installed via pip in Lib\site-packages
import siteandinput(site.getsitepackages()). Double click it and compare the folders with the folder wherepyautoguiis installed.