问题描述
我一直试图在Windows10机器上安装kivy,但没有得到预期的输出,相反,我收到了一系列奇怪的错误消息。首先,我运行以下命令:
I've been trying to install kivy on windows10 machine and I did not get an expected output, instead, I got a series of weird error messages. First I ran the following commands:
python -m pip install --upgrade pip wheel setuptools
python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew
python -m pip install kivy.deps.gstreamer
python -m pip install kivy.deps.angle
python -m pip install pygame
据我所知,一切正常。
之后,我跑了这个命令: python -m pip install https://github.com/kivy/kivy/archive/master.zip
After that, I ran this command: python -m pip install https://github.com/kivy/kivy/archive/master.zip
命令输出帮助我分解了执行它的过程。
Command output helped me break down the process of executing it.
首先,我收到一条错误消息,而正在获取构建车轮的要求。
First I got an error message while "Getting requirements to build wheel".
错误消息:
在准备车轮元数据时出现此错误,和用于Kivy的建筑车轮(PEP 517);也一样我认为值得一提的是,每当我说该错误发生时,都会发生两次,一次又一次。
I got this error while "Preparing wheel metadata" and "Building wheel for Kivy (PEP 517)" as well. I think that it is worth mentioning that every time I said that error occurred, it occurred twice, one after another.
在那之后,我得到了一个巨大的错误:
After that, I got a huge error:
您可以通过以下链接下载测试文件,并显示错误消息:
You can download the test file with an error message on this link: https://filesend.standardnotes.org/send/BPQTjNM3aiUyRXOtfA3A#ZGI2ZDUzMWU2MmYzNTlhNTVlODEw
注意:我执行的所有命令均由管理员在cmd中执行。
Note: All the commands that I executed were executed in cmd ran by the administrator.
如果有人可以向我解释发生了什么,我将不胜感激!
If anyone can explain to me what is going on I would highly appreciate it!
推荐答案
按相关问题进行操作此处-和
Going by related issues here - ERROR: Could not build wheels for pendulum which use PEP 517 and cannot be installed directly and pip failing to build wheels for scipy
答案似乎表明降级 pip
版本可能会解决该问题。但在此之前,请尝试
The answers seem to suggest that downgrading pip
version will likely solve the problem. But before that please try
pip install --upgrade pip setuptools wheel
而不是
python -m pip install --upgrade pip wheel setuptools
看看是否解决。如果没有,通过执行
and see if it solves. If not, downgrade your pip
by doing
python -m pip install --force-reinstall pip==18.1
如果这些都不起作用,那么唯一可行的解决方案是使用 Kivy
在 Anaconda
中。您可以在看到更多有关安装的信息。
If none of these work then your only viable solution is to use Kivy
within Anaconda
. You can see more on installation from here.
这篇关于错误:无法为使用PEP 517且无法直接安装的Kivy车轮制造的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!