无法通过pip安装Pyautogui:错误代码1

时间:2017-05-30 02:58:30

标签: python-3.x pip pyautogui

我输入了pip install pyautogui它给出了错误消息:

Command ""c:\program files\python36\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\Crack\\AppData\\Local\\Temp\\pip-build-mopggaqx\\pymsgbox\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Crack\AppData\Local\Temp\pip-vmqzyehf-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Crack\AppData\Local\Temp\pip-build-mopggaqx\pymsgbox\

我尝试查找它,有人说我需要先说pip install Pillow来安装Pillow。我试过这样做,但类似的东西出现了:

Command ""c:\program files\python36\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\Crack\\AppData\\Local\\Temp\\pip-build-mopggaqx\\pymsgbox\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Crack\AppData\Local\Temp\pip-vmqzyehf-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Crack\AppData\Local\Temp\pip-build-mopggaqx\pymsgbox\

1 个答案:

答案 0 :(得分:0)

我只是想通了。我注意到在我的错误消息的末尾它说

Access Denied

我以管理员身份运行命令提示符(我不知道为什么它还没有运行它因为我以管理员身份登录但是很好)并且说

pip install pyautogui

并且有效。