0

My machine is windows machine. I have Ubuntu hosted in virtual box. I used apt-get to install opencv-python. Now when I try to import cv2, I get an error message: Import Error: No module named cv2. I have python 2.7 and 3.5, but I have changed the interpreter from python 2.7 to 3.5 in my Pycharm IDE. I am on Ubuntu 16.04 LTS.

When I try to use pip to install opencv, I get an error message: Permission denied. How do I install opencv using python 3.5 64bit without running into these nasty errors?

fosslinux
  • 3,831
  • https://stackoverflow.com/questions/37188623/ubuntu-how-to-install-opencv-for-python3 – muru Jun 14 '17 at 02:19

1 Answers1

0

I installed conda based on this SO answer and in Pycharm, I changed the interpreter to the anaconda python; and that did the trick.

conda remove opencv
conda update conda
conda install --channel menpo opencv

But destroyAllWindows() function is still giving me errors. I will find out what's going on.