Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/148.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 affdex.cpp:9:31:致命错误:pybind11/pybind11.h:没有这样的文件或目录#include<;pybind11/pybind11.h>;_Python_C++_Linux_Centos_Pybind11 - Fatal编程技术网

Python affdex.cpp:9:31:致命错误:pybind11/pybind11.h:没有这样的文件或目录#include<;pybind11/pybind11.h>;

Python affdex.cpp:9:31:致命错误:pybind11/pybind11.h:没有这样的文件或目录#include<;pybind11/pybind11.h>;,python,c++,linux,centos,pybind11,Python,C++,Linux,Centos,Pybind11,我可以在Python中导入pybind11,它位于include路径中。但是,按照说明,我得到以下错误: 我在尝试为pypy安装scipy时看到以下错误消息: scipy/fft/_pocketfft/pypocketfft.cxx:15:31: fatal error: pybind11/pybind11.h: No such file or directory #include <pybind11/pybind11.h>

我可以在Python中导入pybind11,它位于include路径中。但是,按照说明,我得到以下错误:


我在尝试为
pypy
安装
scipy
时看到以下错误消息:

  scipy/fft/_pocketfft/pypocketfft.cxx:15:31: fatal error: pybind11/pybind11.h: No such file or directory
   #include <pybind11/pybind11.h>
                                 ^
  compilation terminated.
  scipy/fft/_pocketfft/pypocketfft.cxx:15:31: fatal error: pybind11/pybind11.h: No such file or directory
   #include <pybind11/pybind11.h>

我在尝试为
pypy
安装
scipy
时看到以下错误消息:

  scipy/fft/_pocketfft/pypocketfft.cxx:15:31: fatal error: pybind11/pybind11.h: No such file or directory
   #include <pybind11/pybind11.h>
                                 ^
  compilation terminated.
  scipy/fft/_pocketfft/pypocketfft.cxx:15:31: fatal error: pybind11/pybind11.h: No such file or directory
   #include <pybind11/pybind11.h>

你走的路对吗
$HOME
等于
/HOME/grad3
$HOME/venv/include/site/python2.7
等于
/HOME/grad3/venv/include/site/python2.7
。您似乎遗漏了什么?@Sraw是的,请查看更新您是否设置了正确的路径
$HOME
等于
/HOME/grad3
$HOME/venv/include/site/python2.7
等于
/HOME/grad3/venv/include/site/python2.7
。似乎您遗漏了什么?@Sraw是的,请查看更新我还必须安装
$sudo apt get install pypy dev
我还必须安装
$sudo apt get install pypypy dev
  scipy/fft/_pocketfft/pypocketfft.cxx:15:31: fatal error: pybind11/pybind11.h: No such file or directory
   #include <pybind11/pybind11.h>
                                 ^
  compilation terminated.
  scipy/fft/_pocketfft/pypocketfft.cxx:15:31: fatal error: pybind11/pybind11.h: No such file or directory
   #include <pybind11/pybind11.h>
$ python -m pip install pybind11