我试图在
Windows 10上从源代码安装pyYAML.我从
https://pypi.python.org/pypi/PyYAML下载了PyYAML 3.11.当我运行setup.py时出现错误:[WinError 2]系统找不到指定的文件.怎么解决?
PyYAML-3.11>python setup.py install running install running build running build_py creating build creating build\lib.win-amd64-3.5 creating build\lib.win-amd64-3.5\yaml copying lib3\yaml\composer.py -> build\lib.win-amd64-3.5\yaml copying lib3\yaml\constructor.py -> build\lib.win-amd64-3.5\yaml copying lib3\yaml\cyaml.py -> build\lib.win-amd64-3.5\yaml copying lib3\yaml\dumper.py -> build\lib.win-amd64-3.5\yaml copying lib3\yaml\emitter.py -> build\lib.win-amd64-3.5\yaml copying lib3\yaml\error.py -> build\lib.win-amd64-3.5\yaml copying lib3\yaml\events.py -> build\lib.win-amd64-3.5\yaml copying lib3\yaml\loader.py -> build\lib.win-amd64-3.5\yaml copying lib3\yaml\nodes.py -> build\lib.win-amd64-3.5\yaml copying lib3\yaml\parser.py -> build\lib.win-amd64-3.5\yaml copying lib3\yaml\reader.py -> build\lib.win-amd64-3.5\yaml copying lib3\yaml\representer.py -> build\lib.win-amd64-3.5\yaml copying lib3\yaml\resolver.py -> build\lib.win-amd64-3.5\yaml copying lib3\yaml\scanner.py -> build\lib.win-amd64-3.5\yaml copying lib3\yaml\serializer.py -> build\lib.win-amd64-3.5\yaml copying lib3\yaml\tokens.py -> build\lib.win-amd64-3.5\yaml copying lib3\yaml\__init__.py -> build\lib.win-amd64-3.5\yaml running build_ext creating build\temp.win-amd64-3.5 creating build\temp.win-amd64-3.5\Release checking if libyaml is compilable error: [WinError 2] The system cannot find the file specified
>从
http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyyaml下载适合您需要的轮子(Python版本,32/64位). > $pip3安装PyYAML-3.11-cp35-none-win32.whl
原文链接:https://www.f2er.com/windows/365434.html