Closed Tanath closed 5 years ago
You could try starting a python shell and running import cv2
. If it fails then you'll have to fix your opencv installation.
What makes you think there's something wrong with the package I installed?
I just noticed this:
Using python
(Python 3):
>>> import cv2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'cv2'
Using python2
:
>>> import cv2
>>>
I have pip
and pip3
, both of which use python 3. No pip2
.
I found a python2-pip
repo package which enabled me to pip2 install --user -r requirements.txt
successfully.
Now when I run python2 ./facemorpher/averager.py --images=../gf --out=average.png
I get:
Traceback (most recent call last):
File "facemorpher/averager.py", line 32, in <module>
from facemorpher import locator
ImportError: No module named facemorpher
Edit: Sorry, it's been a bit and I forgot to now pip2 install --user facemorpher
. I have a different error now: OpenCV Error: Unsupported format or combination of formats
but I think I can close this one.
Using Linux. I've tried the
extra/opencv 4.0.1-5
package andopencv2 2.4.13.6-1
but I still get this:pip install --user -r requirements.txt
: