无法通过 pip 安装 Pyautogui:错误代码 1
Can't install Pyautogui via pip: error code 1
我输入了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\
我试着查找它,有人说我需要先安装 Pillow pip install 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\
我刚刚弄明白了。我注意到在我的错误消息末尾它说
Access Denied
我 运行 命令提示符作为管理员(我不知道为什么它还没有 运行 因为我以管理员身份登录但是哦好吧)和说
pip install 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\
我试着查找它,有人说我需要先安装 Pillow pip install 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\
我刚刚弄明白了。我注意到在我的错误消息末尾它说
Access Denied
我 运行 命令提示符作为管理员(我不知道为什么它还没有 运行 因为我以管理员身份登录但是哦好吧)和说
pip install pyautogui
成功了。