face_morpher icon indicating copy to clipboard operation
face_morpher copied to clipboard

Fail to install facemorpher on Ubuntu 18.04

Open veilupt opened this issue 5 years ago • 2 comments

I have a Ubuntu 18.04 and executed the packages from requirements.txt.

While installing facemorpher using the following command pip3 install facemorpher and getting the errors given below. I don't find opencv2 folder

Error Logs:

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/`

veilupt avatar Mar 14 '20 11:03 veilupt

@alyssaq @javl @shichao-an @tschundler

veilupt avatar Mar 16 '20 06:03 veilupt

@veilupt

I solved the problem by install the opencv via:

sudo apt-get install libopencv-dev python-opencv

wtjiang98 avatar Aug 16 '20 12:08 wtjiang98