【发布时间】:2021-04-02 07:20:34
【问题描述】:
我在 Ubuntu 机器上,我想在我的 C 代码中使用 python,但是当我包含 Python.h 头文件时,它会显示一个警告:
Python.h: No such file or directory
任何方法。我已经尝试过使用:
sudo apt-get install python3-dev 和;
sudo apt-get install python-dev
但它一直显示错误。
【问题讨论】:
标签: c python-3.8 ubuntu-20.04