Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/elixir/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
安装了python dev的Ubuntu18上缺少python.h_Python_Ubuntu 18.04_Python 3.8 - Fatal编程技术网

安装了python dev的Ubuntu18上缺少python.h

安装了python dev的Ubuntu18上缺少python.h,python,ubuntu-18.04,python-3.8,Python,Ubuntu 18.04,Python 3.8,试图让fHDHR在Ubuntu18上运行。在安装过程中,我遇到以下错误: include/python3.8 -c src/gevent/libev/corecext.c -o build/temp.linux-x86_64-3.8/src/gevent/libev/corecext.o src/gevent/libev/corecext.c:95:10: fatal error: Python.h: No such file or directory #include "P

试图让fHDHR在Ubuntu18上运行。在安装过程中,我遇到以下错误:

include/python3.8 -c src/gevent/libev/corecext.c -o build/temp.linux-x86_64-3.8/src/gevent/libev/corecext.o
  src/gevent/libev/corecext.c:95:10: fatal error: Python.h: No such file or directory
   #include "Python.h"
            ^~~~~~~~~~
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for gevent
我找到的大多数答案都告诉我需要安装pythondev,但它已经安装(并更新)。在post中,建议sudopip安装mmh3,我尝试过,但也失败了,因为找不到python.h


你知道我的系统缺少什么吗?

你可以尝试安装python3-dev

apt install python3-dev 

由于您使用的是python3

,因此需要按照说明安装python3.x-dev。对我来说,这解决了问题

由于从错误行中我们可以看到您正在运行
python3.8
,因此对于您的情况,您需要执行以下操作:

sudo apt get安装python3.8-dev

python3 dev已安装