Installing Python and Psychopy for Windows
Windows (Vista and later) stand-alone
If you do not use Python for purposes other than PsychoPy experiments, you are advised to use the PsychoPy stand-alone Windows installer. Choose StandalonePsychoPy-1.85.4-win32.exe or something newer if present.
Stand-alone, post install
You may want to install additional packages. For instance the RuSocSci package for using the buttonbox.
The authors of Psychopy have written these instructions for this.
Alternatively you may want to install additional packages using the following method:
- open a command window with administrative privileges (start -> 'cmd' -> run as administrator)
- Go to the folder containing pip.py (C: -> CD "Program Files(x86)\PsychoPy...\...\...")
- for each package that you want to install type python pip.py install <package name>
Windows (Vista and later) with PsychoPy 1.85 as library
If you already have Python 2.7 installed on your computer or if you want to use Python for other purposes as well, you are advised to install PsychoPy as library. Note that for the first two steps in the following instructions you need administrative privileges. Chronological instructions:
- (skip this step if you have Python 2.7 32 bit installed already and you want to keep it) Uninstall all versions of Python 2 that you installed previously. Use Programs and Features in the Control Panel. Also uninstall all Python packages that you see in Programs and Features. Remove C:\Python27.
- (skip this step if you have Python 2.7 32 bit installed already and you want to keep it) Install the newest 32 bit version of Python 2.7. You can download it here. If that does not work, go here and choose the 32 bit installer (Windows x86 MSI Installer). During installation choose 'add python.exe to path'. It is the last option in the list and may not be visible without scrolling down.
- Logout and login again.
- Install wxwidgets 2.8 If that does not work, go here and choose wxPython2.8-win64-unicode-22.214.171.124-py27.exe. It is the ancient library used by PsychoPy for its IDE. It is essential that you do NOT install wxpython/wxwidgets from another source.
- Download this file (right-click -> save link as...) with all other requirements. Use Windows file Explorer to go to the folder where you downloaded it. Shift-right-click to the right of the files (make sure the window is wide enough). Choose 'Open command window here'. From a command line type:
pip install -r DEPS1853.txt
Enjoy watching, and see if there are any errors.
- Now Psychopy is installed on your system. You may want to make a link that opens C:\Python27\Lib\site-packages\psychopy\app\psychopyApp.py with C:\Python27\pythonw.exe and has C:\Python27\Lib\site-packages\psychopy\app\Resources\psychopy.ico as icon.
I thank Christoph Gohlke for compiling the individual packages
As Library, post install
Many packages are already present. You have a working system now. You may want to install more. Popular packages are in DEPS1853_extra.txt. You can install them the same way you installed the psychopy dependencies.
For the Spyder IDE you may want to make a link that opens C:\Python27\Lib\site-packages\spyder\app\start.py with C:\Python27\pythonw.exe and has C:\Python27\Lib\site-packages\spyder\images\spyder.png as icon (In older Windows versions you may have to convert the image to icon format first).
Some packages were not in the file, since installing them that way is not possible:
- PresPy, Neurobs Presentation stimuli from Python. Make a login on the Neurobs website, download PresPy.pyd and put it in C:\Python27\Lib\site-packages\.
- Kivy, installation is problematic in Windows.