Python 无法在Ubuntu 18.04上安装facemorpher

Python 无法在Ubuntu 18.04上安装facemorpher,python,linux,opencv,gcc,morphing,Python,Linux,Opencv,Gcc,Morphing,我有一个ubuntu18.04,并在下面的Github存储库中执行了requirements.txt中的包 使用以下命令安装facemorpher时pip3安装facemorpher获取下面给出的错误。我找不到opencv2文件夹 错误日志: In file included from src/py_wrapper.cpp:13:0: src/stasm.h:33:10: fatal error: opencv2/opencv.hpp: No such file or directory #in

我有一个ubuntu18.04,并在下面的Github存储库中执行了requirements.txt中的包

使用以下命令安装facemorpher时
pip3安装facemorpher
获取下面给出的错误。我找不到opencv2文件夹

错误日志:

In file included from src/py_wrapper.cpp:13:0:
src/stasm.h:33:10: fatal error: opencv2/opencv.hpp: No such file or directory
#include "opencv2/opencv.hpp"
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-g5nna6ak/stasm/setup.py';f In file included from src/py_wrapper.cpp:13:0:
src/stasm.h:33:10: fatal error: opencv2/opencv.hpp: No such file or directory
#inc ----------------------------------------
lude "opencv2/opencv.hpp"
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-g5nna6ak/stasm/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-7nioxx18-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-g5nna6ak/stasm/
=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-7nioxx18-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-g5nna6ak/stasm/`