megvii-research / neural-painter

Paint artistic patterns using random neural network.
532 stars 54 forks source link

ImportError: No module named 'cv2' #1

Closed ProGamerGov closed 7 years ago

ProGamerGov commented 7 years ago
ubuntu@ubuntu-VirtualBox:~/neural-painter$ python3 neural_painter.py
Traceback (most recent call last):
  File "neural_painter.py", line 15, in <module>
    import cv2
ImportError: No module named 'cv2'
ubuntu@ubuntu-VirtualBox:~/neural-painter$ 

I installed OpenCV2 using sudo apt-get install -y libopencv-dev from this Github guide.

ProGamerGov commented 7 years ago

After running:

sudo apt-get install python-opencv

I get:

ubuntu@ubuntu-VirtualBox:~/neural-painter$ python neural_painter.py
Compiling...
Drawing...

So I think I solved the issue.