3/18/2023 0 Comments Run psychopy on anacondaI chose the Python distribution Anaconda, because it comes with high quality packages and lots of precompiled native libraries (which otherwise can be non-trivial to build on Windows). First of all you need to install Python on your machine. Including core.quit() at the end of the script is the key if you do not want to restart the IPython kernel after running a script. Configure P圜harm to use Anaconda Python 3.5 and PySpark 1. One strange thing remains: I have to restart the IPython kernel after running the script. PsychoPy outputs ¶ Various options: csv file for the experiment (one trial per line) csv or excel ‘summaries’ format (can only be saved by individual loops, not the ExperimentHandler). Within the terminal: source activate psychopyenv # move to your anaconda psychopy environmentĬonda remove -name psychopyenv pyglet1.2 # delete the current version of pygletĬonda install -c jcarlin pyglet # install pyglet 1.2.4 from a different channelĪfterwards, I was able to run my psychopy scripts in the spyder editor. Continuum Anaconda They both contain package managers, which will help you install other libraries. You should get a gray window with PsychoPy title. Copy-paste the following code: Run it to check that PsychoPy work. so python and pyglet somehow thought I wanted to run the script on a Mac OSX <10.Īnaconda-based Solution (if you followed this initial installation): In the subfolder for the current seminar, create file exercise01.py (I would recommend using lead zero in 01, as it will ensure correct file sorting once we get to exercise 10, 11, etc.). Remember, the exception was: Exception: pyglet is not compatible with 64-bit Python for versions of Mac OS X prior to 10.6. conda create -n psychopy python3.6 anaconda it creates a virtual env named psychopy source activate psychopy it activates this virtual environment pip install psychopy it installs psychopy lib in the virtual environment. Hopefully this will help other people as well:Īccording to this forum post the problem with pyglet does not lie in the 64bit but rather in a broken version check of mac OSX. To meet these goals PsychoPy provides a choice of interface - you can use a simple. After searching through the Internet for the rest of the day, I found a solution that works for me. able to run experiments in a local Python script or online in JavaScript.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |