Python 2.7,PIP:"...的构建轮子失败"; [英] Python 2.7, PIP: "Failed building wheel for ..."
问题描述
第一次使用pip,尝试使用 python-docs-samples教程库 .当我运行"python -m pip install -r requirements.txt"命令时,引入了许多脚本,但是随后出现一系列"Failed building wheel"错误.其中的一个显示在所附的代码块中(请原谅手动输入的自动换行符).
First time using pip, trying to use the python-docs-samples tutorial library. When I run the "python -m pip install -r requirements.txt" command, a lot of scripts are pulled in, but then I get a series of "Failed building wheel" errors. One of these is shown in the attached code block (please pardon the hand-entered word-wrap linebreaks).
出什么问题了?有人看过吗?我没有更改库的任何部分或使用它的代码,并且我使用的是Python 2.7.12,它应该对PIP具有良好的内置支持.
What is the problem? Anyone seen this before? I have not altered any parts of the library or the code that uses it, and I'm using Python 2.7.12 which is supposed to have good built-in support for PIP.
Running setup.py bdist_wheel for PyYAML ... error
Complete output from command C:\users\owner\python-docs-samples\env\Scripts\python.exe
-u -c "import setuptools, tokenize;__file__='c:\\users\\owner\\appdata\\local\\temp\\
pip-build-86ysrg\\PyYAML\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__)
.read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d c:\users\owner\appdata
\local\temp\tmpljy6z0pip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-2.7
creating build\lib.win32-2.7\yaml
copying lib\yaml\composer.py -> build\lib.win32-2.7\yaml
copying lib\yaml\constructor.py -> build\lib.win32-2.7\yaml
copying lib\yaml\cyaml.py -> build\lib.win32-2.7\yaml
copying lib\yaml\dumper.py -> build\lib.win32-2.7\yaml
copying lib\yaml\emitter.py -> build\lib.win32-2.7\yaml
copying lib\yaml\error.py -> build\lib.win32-2.7\yaml
copying lib\yaml\events.py -> build\lib.win32-2.7\yaml
copying lib\yaml\loader.py -> build\lib.win32-2.7\yaml
copying lib\yaml\nodes.py -> build\lib.win32-2.7\yaml
copying lib\yaml\parser.py -> build\lib.win32-2.7\yaml
copying lib\yaml\reader.py -> build\lib.win32-2.7\yaml
copying lib\yaml\representer.py -> build\lib.win32-2.7\yaml
copying lib\yaml\resolver.py -> build\lib.win32-2.7\yaml
copying lib\yaml\scanner.py -> build\lib.win32-2.7\yaml
copying lib\yaml\serializer.py -> build\lib.win32-2.7\yaml
copying lib\yaml\tokens.py -> build\lib.win32-2.7\yaml
copying lib\yaml\__init__.py -> build\lib.win32-2.7\yaml
running build_ext
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
checking if libyaml is compilable
error: [Error 2] The system cannot find the file specified
----------------------------------------
Failed building wheel for PyYAML
Running setup.py clean for PyYAML
推荐答案
安装公共依赖项
sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-pil python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3 python-dev
这篇关于Python 2.7,PIP:"...的构建轮子失败";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!