简体   繁体   中英

How come after I install pyautogui it won't import and says No module named 'pyautogui'

After I install pyautogui through pip using py -m pip install pyautogui . I try to import it into Pycharm using import pyautogui but it just says "No module named pyautogui". I have tried uninstalling python and pyautogui and reinstalling them. I am very new to python so sorry if this makes no sense or is really easy to fix, thanks:)

Check this answer i believe it is what u need

It's some other guy asking same thing how to install packaging

If you already have another Python installed try view the version of your Python

python -V

ex.: Python 3.90

try:

pip3.9 install pyautogui

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM