我在python2.7.6中使用的是Ubuntu14.04,缺少了pyconfig.h
。
在最后更新之后,它说头文件丢失了。
命令是
sudo pip install <software>
怎么能解决呢?
发布于 2015-08-02 02:17:38
该文件是各种包的一部分:
libpython2.7-dbg: /usr/include/python2.7_d/pyconfig.h
libpython2.7-dbg: /usr/include/x86_64-linux-gnu/python2.7_d/pyconfig.h
libpython2.7-dev: /usr/include/python2.7/pyconfig.h
libpython2.7-dev: /usr/include/x86_64-linux-gnu/python2.7/pyconfig.h
libpython3.4-dbg: /usr/include/python3.4dm/pyconfig.h
libpython3.4-dbg: /usr/include/x86_64-linux-gnu/python3.4dm/pyconfig.h
libpython3.4-dev: /usr/include/python3.4m/pyconfig.h
libpython3.4-dev: /usr/include/x86_64-linux-gnu/python3.4m/pyconfig.h
pypy-dev: /usr/lib/pypy/include/pyconfig.h
在你的情况下,我想说,你需要
sudo apt-get install libpython2.7-dev
https://askubuntu.com/questions/655615
复制相似问题