Search code examples
pythonmacoswxpythonanaconda

Python wx import fails Mac OS X 10.9.5 using Anaconda


I installed Python wx from the official website. However when I try to import wx, I got the following error message:

import wx Traceback (most recent call last):
File "<stdin>", line 1,
in <module> ImportError: No module named wx

I tried to run 32bit and 64bit version, but it still does not work. I am using the following version for python:

Python 2.7.6 |Anaconda 1.9.1 (x86_64)| (default, Jan 10 2014, 11:23:15) 
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin

Solution

  • Anaconda is not linked to the default python folder, so whether brew nor the installer could be linked to the anaconda distribution.

    conda install wxpython
    

    does the trick