我正在通过 pip 安装 python 包pyautogui,如下所示:
pip install pyautogui
但是,它显示错误:
ERROR: Complete output from command python setup.py egg_info:
ERROR: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Winnie\AppData\Local\Temp\pip-install-dxvr5jhi\pygetwindow\setup.py", line 11, in <module>
long_description = fh.read()
UnicodeDecodeError: 'cp950' codec can't decode byte 0xe2 in position 903: illegal multibyte sequence
----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\Users\Winnie\AppData\Local\Temp\pip-install-dxvr5jhi\pygetwindow\
我在stackoverflow上搜索了我的问题,我的做法与"pip install unroll": "python setup.py egg_info" failed with error code 1相同。
当我尝试 easy_install -U setuptools
它显示:
error: [WinError 5] Permission denied: 'c:\\users\\winnie\\appdata\\local\\programs\\python\\python37-32\\Scripts\\easy_install.exe'
这是我正在使用的:
- 操作系统:Windows 10
- Python:3.7.3
- pip :19.1
我的电脑出了什么问题?谁能帮我吗?
非常感谢
最佳答案
您能否使用管理员角色运行命令。 pip 安装 pyautogui
关于python - Windows - 无法通过 pip 安装 pyautogui - 错误 : Command "python setup.py egg_info" failed with error code 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55842152/