出现No such file or directory的错误,有两种情况,一种是没有Python.h这个文件,一种是Python的版本不对,

可以进入/usr/include/文件夹下的Pythonx.x文件夹里查找是否有Python.h这个文件。

如果是第一种情况,那么需要安装python-dev这个包,(sudo apt-get install python-dev)。

---------------------

这里记录一下,原文转自于:

https://blog.csdn.net/chenyulancn/article/details/8025847

 

相关文章:

  • 2021-08-22
  • 2021-07-01
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-10
  • 2022-12-23
  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案