I am trying to install PyAutoGui
with pip
. But I am getting the following error. And I took solutions where I found from the website. But doesn't work. How do I fix it?
Collecting pyautogui
Using cached PyAutoGUI-0.9.52.tar.gz (55 kB)
Collecting pygetwindow>=0.0.5
Using cached PyGetWindow-0.0.9.tar.gz (9.7 kB)
Collecting pyscreeze>=0.1.21
Using cached PyScreeze-0.1.26.tar.gz (23 kB)
Requirement already satisfied: Pillow>=5.2.0 in c:python3.7.5libsite-packages (from pyscreeze>=0.1.21->pyautogui) (7.2.0)
Collecting PyTweening>=1.0.1
Using cached PyTweening-1.0.3.zip (15 kB)
Collecting mouseinfo
Using cached MouseInfo-0.1.3.tar.gz (10 kB)
Collecting pymsgbox
Using cached PyMsgBox-1.0.9.tar.gz (18 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:
command: 'c:python3.7.5python.exe' 'c:python3.7.5libsite-packagespip\_vendorpep517\_in_process.py' get_requires_for_build_wheel 'C:UsersjokAppDataLocalTempmphnplb_km'
cwd: C:UsersjokAppDataLocalTemppip-install-nk1qswzupymsgbox_9f69453ee22a4dfb9679747e2ef1ea47
Complete output (13 lines):
Fatal Python error: initsite: Failed to import the site module
Traceback (most recent call last):
File "c:python3.7.5libsite.py", line 579, in <module>
main()
File "c:python3.7.5libsite.py", line 572, in main
execsitecustomize()
File "c:python3.7.5libsite-packagescertifi_win32ootstrap.py", line 37, in _execsitecustomize
_register_bootstrap_functions()
File "c:python3.7.5libsite-packagescertifi_win32ootstrap.py", line 25, in _register_bootstrap_functions
from . import wrapt_certifi, wrapt_pip
File "c:python3.7.5libsite-packagescertifi_win32wrapt_certifi.py", line 3, in <module>
import wrapt
ModuleNotFoundError: No module named 'wrapt'
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:python3.7.5python.exe' 'c:python3.7.5libsite-packagespip\_vendorpep517\_in_process.py' get_requires_for_build_wheel 'C:UsersjokAppDataLocalTempmphnplb_km' Check the logs for full command output.**
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…