Installing and/or starting PsychoPy on Linux

I just wanted you to know that uv makes it very easy to install/start PsychoPy on Linux:

uvx --python 3.10 --with https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-24.04/wxPython-4.2.2-cp310-cp310-linux_x86_64.whl psychopy

That’s it!

2 Likes

I am a linux user, and I can confirm this worked well for me. However, I slightly altered the command, because I wanted to install source to a particular directory/virtual environment. First, if you haven’t already, install uv. Then,

uv venv
source ./.venv/bin/activate
uv pip install https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-24.04/wxPython-4.2.2-cp310-cp310-linux_x86_64.whl && uv pip install --no-build-isolation psychopy

The code lives inside the “hidden” .venv directory, e.g.

python ~/testPy/.venv/lib/python3.10/site-packages/psychopy/demos/coder/stimuli/face_jpy.py

Should run the demo.

And I don’t know if readers here have the ability to change the instructions on the page:

But these instructions for linux user are going to be a lot more helpful, I think. Or at least give a nice option.