Sorry, this content is no longer available

Ask Your Question
1

Compiling Issue: Anaconda 1.4.0

asked Apr 3 '13

donei01 gravatar image

All,

I installed Anaconda-1.4.0-Windows-x86_64 (python 2.7) and then extracted opencv 2.4.4. I have a 64 bit Windows 7, and I followed these instructions about how to install opencv on windows: http://docs.opencv.org/doc/tutorials/introduction/windows_install/windows_install.html#windows-installation (created the env. vars, setup the paths according to the drive location where I installed, everything as listed...).

However, when I try to import cv2 from my inotebook (the codefile is in a random location on my drive and I call the ipython.exe from the scripts folder to start my file from its source folder). After I compile the file, I am getting the following error: ImportError: No module named cv2.

Can someone give me advice about what I am doing wrong?

Thank you!

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Apr 3 '13

Guanta gravatar image

Create a new user environment variable with the name PYTHONPATH and set it to the path to the cv2.so , e.g. C:\opencv\build\python\2.7 . Hope that solves it!

Btw: I think I answered a similar question already some while ago, so next time please search for your problems first.

Preview: (hide)

Question Tools

Stats

Asked: Apr 3 '13

Seen: 1,276 times

Last updated: Apr 03 '13