Installing psychopy with pip or anaconda?

875 views
Skip to first unread message

Chris Holdgraf

unread,
Apr 17, 2014, 5:17:05 PM4/17/14
to psychop...@googlegroups.com
Hello all - thus far I've been using a standalone version of psychopy. However, now I'd like to explore some of the psydat files that were created, and I'd like to use ipython as my interactive environment to explore them.

This means I need to install psychopy libraries, but I'm having a really hard time getting this to work.  I have tried using easy_install and pip, but I get an error when gui tries to import wx.

/Users/choldgraf/anaconda/lib/python2.7/site-packages/psychopy/gui.py in <module>()
      6 from
psychopy import logging
      7 #from wxPython import wx
----> 8 import wx
      9 import numpy
     10 import string, os

ImportError: No module named wx

I've tried pip install wxPython, but this is called wxPython, not wx (as the developers know, considering the commented line above). 

Anyone have suggestions for getting this to work? I'm using the anaconda distribution, so no enpkg for me :P

Thanks

Jonas Lindeløv

unread,
Apr 18, 2014, 2:20:47 PM4/18/14
to psychop...@googlegroups.com
Hi Chris

The problem is that psychopy relies on a number of python modules which are not installed in your anaconda. You could install them all (e.g. "pip install wx") that's going to be quite tedious and not guaranteed to work. as you'd need all the correct versions. You can, however, get the psychopy modules into another python environment by adding it to the PYTHONPATH. See http://lindeloev.net/?page_id=216. This is not possible on Mac.

Or better yet, just install linux and install psychopy from neuro.debian. Then it's in your default python :-)

Hope this helps. Best,
Jonas
Reply all
Reply to author
Forward
0 new messages