简体   繁体   English

在Windows 10上安装Pillow / PyAutoGUI时出错

[英]Error while Installing Pillow / PyAutoGUI on Windows 10

i wanted to install PyAutoGUI via pip. 我想通过pip安装PyAutoGUI。

It worked, until it installed Pillow. 它一直有效,直到安装了枕头。

Here is the error: 这是错误:

Command "c:\\users\\erazor\\appdata\\local\\programs\\python\\python38\\python.exe -u -c "import setuptools, tokenize; 命令“ c:\\ users \\ erazor \\ appdata \\ local \\ programs \\ python \\ python38 \\ python.exe -u -c”导入设置工具,标记化; file ='C:\\Users\\Erazor\\AppData\\Local\\Temp\\pip-install-ff50gy2x\\Pillow\\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\\Erazor\\AppData\\Local\\Temp\\pip-record-hfqa44g5\\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\\Users\\Erazor\\AppData\\Local\\Temp\\pip-install-ff50gy2x\\Pillow\\ 文件 ='C:\\ Users \\ Erazor \\ AppData \\ Local \\ Temp \\ pip-install-ff50gy2x \\ Pillow \\ setup.py'; f = getattr(tokenize,'open',open)( file ); code = f.read ().replace('\\ r \\ n','\\ n'); f.close(); exec(compile(code, file ,'exec'))“”安装--record C:\\ Users \\ Erazor \\ AppData \\ Local \\ Temp \\ pip-record-hfqa44g5 \\ install-record.txt-“单一版本-外部管理的--compile”在C:\\ Users \\ Erazor \\ AppData \\ Local \\ Temp \\ pip-中失败,错误代码为1安装-ff50gy2x \\枕头\\

Here is a Hastebin forme the command promt. 这是Hastebin格式的命令promt。

I hope you can help me. 我希望你能帮助我。

EDIT: I tried han solos comment. 编辑:我试图韩索洛斯评论。 It did not Work its the Same error but now i get 它没有工作相同的错误,但现在我明白了

Failed building wheel for Pillow 枕头失灵的车轮

as an additional error. 作为另一个错误。

EDIT: New error: 编辑:新错误:

Building wheels for collected packages: Pillow Building wheel for Pillow (setup.py) ... error Failed building wheel for Pillow Running setup.py clean for Pillow Failed to build Pillow Installing collected packages: Pillow, pyscreeze, pyautogui Running setup.py install for Pillow ... error Command "c:\\users\\erazor\\appdata\\local\\programs\\python\\python38\\python.exe -u -c "import setuptools, tokenize; 用于收集的软件包的建筑轮子:枕头用于枕头的建筑轮子(setup.py)...错误用于枕头的建筑轮子失败运行setup.py清理枕头无法构建枕头安装收集的软件包:枕头,pyscreeze,pyautogui正在运行setup.py install for Pillow ...错误命令“ c:\\ users \\ erazor \\ appdata \\ local \\ programs \\ python \\ python38 \\ python.exe -u -c”导入设置工具,标记化; file ='C:\\Users\\Erazor\\AppData\\Local\\Temp\\pip-install-m5b1ubtx\\Pillow\\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\\Erazor\\AppData\\Local\\Temp\\pip-record-ot3l1c72\\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\\Users\\Erazor\\AppData\\Local\\Temp\\pip-install-m5b1ubtx\\Pillow\\ 文件 ='C:\\ Users \\ Erazor \\ AppData \\ Local \\ Temp \\ pip-install-m5b1ubtx \\ Pillow \\ setup.py'; f = getattr(tokenize,'open',open)( file ); code = f.read ().replace('\\ r \\ n','\\ n'); f.close(); exec(compile(code, file ,'exec'))“”安装--record C:\\ Users \\ Erazor \\ AppData \\ Local \\ Temp \\ pip-record-ot3l1c72 \\ install-record.txt-“单一版本-外部管理的--compile”失败,错误代码为1:C:\\ Users \\ Erazor \\ AppData \\ Local \\ Temp \\ pip-安装-m5b1ubtx \\枕头\\

Pillow最新支持的Python版本是3.7,而不是3.8。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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