【问题标题】:I have installed with yum install python-devel ,but still can not find the Python.h file [closed]我已经安装了 yum install python-devel ,但仍然找不到 Python.h 文件 [关闭]
【发布时间】:2013-07-24 07:17:09
【问题描述】:

我已经运行了命令yum install python-devel,输出是:

yum install python-devel
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package python-devel.i686 0:2.6.4-25.fc13 set to be updated
--> Finished Dependency Resolution

但是当我locate Python.h时,它没有输出任何东西 请分享您的解决方案,如果您知道原因,非常感谢

【问题讨论】:

    标签: python linux python-2.7 python-3.x yum


    【解决方案1】:

    安装包不会自动更新locatedb。你没有看到任何奇怪的东西。如果要手动更新locatedb,请运行updatedb

    【讨论】:

    • 你说的就是我想要的。谢谢
    【解决方案2】:

    如果你跑了

    $ rpm -ql python-devel | grep -i python.h
    

    你会得到

    /usr/include/python2.6/Python.h
    

    【讨论】:

    • 你能告诉我为什么我找不到它吗?
    猜你喜欢
    • 1970-01-01
    • 2020-03-15
    • 1970-01-01
    • 1970-01-01
    • 2023-01-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-04
    相关资源
    最近更新 更多