Python affdex.cpp:9:31:致命错误:pybind11/pybind11.h:没有这样的文件或目录#include<;pybind11/pybind11.h>;
我可以在Python中导入pybind11,它位于include路径中。但是,按照说明,我得到以下错误: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>
我在尝试为
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