<bdo id='kugBW'></bdo><ul id='kugBW'></ul>
      <tfoot id='kugBW'></tfoot>

      <small id='kugBW'></small><noframes id='kugBW'>

      <legend id='kugBW'><style id='kugBW'><dir id='kugBW'><q id='kugBW'></q></dir></style></legend>

      <i id='kugBW'><tr id='kugBW'><dt id='kugBW'><q id='kugBW'><span id='kugBW'><b id='kugBW'><form id='kugBW'><ins id='kugBW'></ins><ul id='kugBW'></ul><sub id='kugBW'></sub></form><legend id='kugBW'></legend><bdo id='kugBW'><pre id='kugBW'><center id='kugBW'></center></pre></bdo></b><th id='kugBW'></th></span></q></dt></tr></i><div id='kugBW'><tfoot id='kugBW'></tfoot><dl id='kugBW'><fieldset id='kugBW'></fieldset></dl></div>
      1. 为什么致命错误:安装 PyYAML 时找不到“yaml.h&quo

        时间:2023-09-13
            <tbody id='UDjsp'></tbody>
        • <small id='UDjsp'></small><noframes id='UDjsp'>

            <i id='UDjsp'><tr id='UDjsp'><dt id='UDjsp'><q id='UDjsp'><span id='UDjsp'><b id='UDjsp'><form id='UDjsp'><ins id='UDjsp'></ins><ul id='UDjsp'></ul><sub id='UDjsp'></sub></form><legend id='UDjsp'></legend><bdo id='UDjsp'><pre id='UDjsp'><center id='UDjsp'></center></pre></bdo></b><th id='UDjsp'></th></span></q></dt></tr></i><div id='UDjsp'><tfoot id='UDjsp'></tfoot><dl id='UDjsp'><fieldset id='UDjsp'></fieldset></dl></div>

              <legend id='UDjsp'><style id='UDjsp'><dir id='UDjsp'><q id='UDjsp'></q></dir></style></legend>
                <tfoot id='UDjsp'></tfoot>
                  <bdo id='UDjsp'></bdo><ul id='UDjsp'></ul>
                  本文介绍了为什么致命错误:安装 PyYAML 时找不到“yaml.h"文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我正在尝试下载 PyYAML 并按照此处的说明进行安装 http://pyyaml.org/wiki/PyYAML

                  I'm trying out downloading PyYAML and install it following the instructions here http://pyyaml.org/wiki/PyYAML

                  于是我下载了 ZIP 包:http://pyyaml.org/download/pyyaml/PyYAML-3.11.zip 然后 cd 进入该文件夹并运行 python setup.py --with-libyaml install,我得到的错误消息是 ext/_yaml.h:2:10:致命错误:找不到yaml.h"文件

                  So I downloaded the ZIP package: http://pyyaml.org/download/pyyaml/PyYAML-3.11.zip and then cd into that folder and run python setup.py --with-libyaml install, the error message I got is ext/_yaml.h:2:10: fatal error: 'yaml.h' file not found

                  但我检查了 PyYAML-3.11 文件夹,yaml.h 在那里...

                  But I checked the PyYAML-3.11 folder, the yaml.h is there...

                  更新:我尝试了这里的方法 http://sandlininc.com/?p=500

                  UPDATE: I tried the methods here http://sandlininc.com/?p=500

                  $ sudo easy_install pip
                  $ brew install libyaml
                  $ sudo easy_install setuptools
                  $ pip install -U PyYAML

                  然后我再次尝试了 python setup.py --with-libyaml install.我收到消息error:/Library/Python/2.7/site-packages/_yaml.so: Permission denied

                  Then I tried the python setup.py --with-libyaml install again. I got the message error: /Library/Python/2.7/site-packages/_yaml.so: Permission denied

                  我错过了什么吗?为什么权限被拒绝?谢谢!

                  Did I miss anything? Why the permission was denied? Thank you!

                  推荐答案

                  添加需要的依赖库后重新安装pyyaml包即可解决问题.步骤如下:

                  You can solve the issue by reinstalling the pyyaml package after adding required dependent libraries. Following are the steps:

                  1. 卸载 pyyaml

                  pip 卸载 pyyaml

                  1. 安装以下包

                  apt-get install libyaml-dev libpython2.7-dev

                  1. 再次安装pyyaml

                  pip install pyyaml

                  这篇关于为什么致命错误:安装 PyYAML 时找不到“yaml.h"文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:ConfigObj/ConfigParser 与为 Python 设置文件使用 YAML 下一篇:以编程方式取消保护 Excel 文件

                  相关文章

                  最新文章

                  <tfoot id='oFE0H'></tfoot>

                    <small id='oFE0H'></small><noframes id='oFE0H'>

                      <bdo id='oFE0H'></bdo><ul id='oFE0H'></ul>
                  1. <i id='oFE0H'><tr id='oFE0H'><dt id='oFE0H'><q id='oFE0H'><span id='oFE0H'><b id='oFE0H'><form id='oFE0H'><ins id='oFE0H'></ins><ul id='oFE0H'></ul><sub id='oFE0H'></sub></form><legend id='oFE0H'></legend><bdo id='oFE0H'><pre id='oFE0H'><center id='oFE0H'></center></pre></bdo></b><th id='oFE0H'></th></span></q></dt></tr></i><div id='oFE0H'><tfoot id='oFE0H'></tfoot><dl id='oFE0H'><fieldset id='oFE0H'></fieldset></dl></div>

                    <legend id='oFE0H'><style id='oFE0H'><dir id='oFE0H'><q id='oFE0H'></q></dir></style></legend>