Skip to content

Instantly share code, notes, and snippets.

@aforren1
Last active April 10, 2017 13:48
Show Gist options
  • Select an option

  • Save aforren1/3eeb39b8ed72ee4be572ca5cf76db7a1 to your computer and use it in GitHub Desktop.

Select an option

Save aforren1/3eeb39b8ed72ee4be572ca5cf76db7a1 to your computer and use it in GitHub Desktop.

We'll stick to 32-bit installation (to make iohub happy?)

  1. Install python 2.7.12 x86 (make sure to add python to your PATH var, just for ease-of-use)
  • We use this version solely for compatibility with the nidaqmx package (2.7.14 being compatible when it comes out)
  • Ideally, psychopy will eventually support 3.x, which is actively developed
  1. Install wheels for numpy and scipy from http://www.lfd.uci.edu/~gohlke/pythonlibs/
  • for instance, use numpy‑1.12.1+mkl‑cp27‑cp27m‑win32.whl because we're using python 2.7 on 32 bit
  • python -m pip install <path_to_numpy_whl>.whl
  • We install these two globally because they're cumbersome to keep re-installing and rather large
  1. virtualenv venv --system-site-packages in your project directory to create virtualenv storage folder

  2. venv\Scripts\activate to turn on the virtualenv (deactivate to turn it off)

  3. Start installing dependencies within virtualenv

  • python -m pip install pypiwin32 matplotlib pandas pyopengl pyglet pillow moviepy lxml openpyxl configobj
  • python -m pip install git+https://github.com/psychopy/psychopy
  • python -m pip install pyyaml gevent greenlet msgpack-python psutil table cffi pysoundcard pysoundfile sounddevice pyserial pyparallel
  • python -m pip install nidaqmx (install nidaq runtime, etc.!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment