久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

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

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

    • <bdo id='AqG2A'></bdo><ul id='AqG2A'></ul>
    <tfoot id='AqG2A'></tfoot>
    <legend id='AqG2A'><style id='AqG2A'><dir id='AqG2A'><q id='AqG2A'></q></dir></style></legend>

      在 CentOS 上找不到 Python.h 文件

      Can#39;t find Python.h file on CentOS(在 CentOS 上找不到 Python.h 文件)
      <i id='EXVnA'><tr id='EXVnA'><dt id='EXVnA'><q id='EXVnA'><span id='EXVnA'><b id='EXVnA'><form id='EXVnA'><ins id='EXVnA'></ins><ul id='EXVnA'></ul><sub id='EXVnA'></sub></form><legend id='EXVnA'></legend><bdo id='EXVnA'><pre id='EXVnA'><center id='EXVnA'></center></pre></bdo></b><th id='EXVnA'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='EXVnA'><tfoot id='EXVnA'></tfoot><dl id='EXVnA'><fieldset id='EXVnA'></fieldset></dl></div>
        <tbody id='EXVnA'></tbody>

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

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

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

              • 本文介紹了在 CentOS 上找不到 Python.h 文件的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                我正在嘗試在 CentOS 機(jī)器上編譯用 C 編寫的 Python 擴(kuò)展.我得到了

                I am trying to compile a Python extension written in C on a CentOS machine. I am getting

                error: Python.h: No such file or directory
                

                它在 ubuntu 上運(yùn)行良好,我使用 apt-get 安裝了 python-dev.

                It works fine on ubuntu, where I have python-dev installed using apt-get.

                我嘗試使用安裝 python-devel

                I tried installing python-devel using

                yum install python-devel
                

                但它已經(jīng)安裝了.如何解決此錯誤?

                but it is already installed. How do I fix this error?

                推薦答案

                在我的系統(tǒng)上,Python.h 頭文件位于路徑 /usr/include/python2.6/.由于預(yù)處理器默認(rèn)不搜索此路徑,因此您必須將其添加到要搜索的路徑列表中.這是通過編譯器的 -I 選項完成的,如下所示:

                On my system the Python.h header file is in the path /usr/include/python2.6/. As this path is not searched by the pre-processor by default, you have to add it to the list of paths to search. This is done with the -I option to the compiler, like this:

                $ gcc -I/usr/include/python2.6 source.c -o program
                

                將上面的路徑更改為系統(tǒng)上的實際路徑.您可以使用 find 命令中的建議找到它locate 命令(如果已安裝)的注釋.

                Change the path above to the actual path on your system. You can find it either with the find command as proposed in a comment, of with the locate command if it's installed.

                這篇關(guān)于在 CentOS 上找不到 Python.h 文件的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                相關(guān)文檔推薦

                python: Two modules and classes with the same name under different packages(python:不同包下同名的兩個模塊和類)
                Configuring Python to use additional locations for site-packages(配置 Python 以使用站點包的其他位置)
                How to structure python packages without repeating top level name for import(如何在不重復(fù)導(dǎo)入頂級名稱的情況下構(gòu)造python包)
                Install python packages on OpenShift(在 OpenShift 上安裝 python 包)
                How to refresh sys.path?(如何刷新 sys.path?)
                Distribute a Python package with a compiled dynamic shared library(分發(fā)帶有已編譯動態(tài)共享庫的 Python 包)
              • <i id='uoJnx'><tr id='uoJnx'><dt id='uoJnx'><q id='uoJnx'><span id='uoJnx'><b id='uoJnx'><form id='uoJnx'><ins id='uoJnx'></ins><ul id='uoJnx'></ul><sub id='uoJnx'></sub></form><legend id='uoJnx'></legend><bdo id='uoJnx'><pre id='uoJnx'><center id='uoJnx'></center></pre></bdo></b><th id='uoJnx'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='uoJnx'><tfoot id='uoJnx'></tfoot><dl id='uoJnx'><fieldset id='uoJnx'></fieldset></dl></div>

                • <tfoot id='uoJnx'></tfoot>

                  1. <small id='uoJnx'></small><noframes id='uoJnx'>

                        <bdo id='uoJnx'></bdo><ul id='uoJnx'></ul>
                        • <legend id='uoJnx'><style id='uoJnx'><dir id='uoJnx'><q id='uoJnx'></q></dir></style></legend>
                            <tbody id='uoJnx'></tbody>
                          主站蜘蛛池模板: 又爽又黄axxx片免费观看 | 有码在线 | 91色视频在线 | 国产成人在线播放 | 夜夜摸天天操 | 日韩在线精品 | 日韩精品一区二区在线 | 日韩福利一区 | 久久久久久av | 国产精品久久久久久久久久 | 亚洲视频在线看 | 亚洲天堂免费 | av日韩精品 | 日韩成人免费视频 | 国产一级一片免费播放 | 色视频欧美| 91观看 | 在线播放一区二区三区 | 日韩视频一区二区三区 | 亚洲综合一区二区三区 | 美女爽到呻吟久久久久 | 国产精品黄色 | 亚洲精品www | 国产精品视频在线观看 | 欧美日韩高清在线一区 | 欧美1区2区 | 一区二区三区不卡视频 | 日本一道本 | 亚洲视频免费在线观看 | 成人精品一区二区三区中文字幕 | 97视频人人澡人人爽 | 欧美精品一区二区在线观看 | 亚洲第一区国产精品 | 日韩一级 | 久久99久久99| 黄网址在线观看 | 在线观看免费av网 | 九九九视频 | 亚洲成人av | 91资源在线| 在线观看视频91 |