Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to install facemorpher on Ubuntu 18.04 #60

Open
veilupt opened this issue Mar 14, 2020 · 2 comments
Open

Fail to install facemorpher on Ubuntu 18.04 #60

veilupt opened this issue Mar 14, 2020 · 2 comments

Comments

@veilupt
Copy link

veilupt commented Mar 14, 2020

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
Copy link
Author

veilupt commented Mar 16, 2020

@wtjiang98
Copy link

@veilupt

I solved the problem by install the opencv via:

sudo apt-get install libopencv-dev python-opencv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants