Solved: Installing PsychoPy on Fedora 41

The install process on Linux, I can confirm, is difficult. This is primarily due to difficulties with dependencies of wxwidgets After much trial and error, I am posting a working configuration in case it is helpful to others. Please see the following conda environment.

Conda Environment Spec.

psychopy-env.json (33.1 KB)

1 Like

Installation Steps

conda create -n psychopy python=3.10
conda activate psychopy
pip install attrdict setuptools
pip install --no-binary wxpython wxpython
pip install psychopy

# At this stage if I were to run PsychoPy I would get...
#    ImportError: /lib64/libldap.so.2: undefined symbol: EVP_md2, version OPENSSL_3.0.0
# Using conda-forge libldap instead of the system version corrected this.
conda install openssl openldap

System Information

PsychoPy 2024.2.4

Paths to files on the system:
    userPrefsFile: /home/user/.psychopy3/userPrefs.cfg
    appDataFile: /home/user/.psychopy3/appData.cfg
    demos: /home/user/.conda/envs/psychopy/lib/python3.10/site-packages/psychopy/demos
    appFile: /home/user/.conda/envs/psychopy/lib/python3.10/site-packages/psychopy/app/PsychoPy.py

System Info:
     Operating System: Linux-6.12.8-200.fc41.x86_64-x86_64-with-glibc2.40
     Processor: 
     CPU freq (MHz): 4971.0
     CPU cores: 6 (physical), 12 (logical)
     Installed memory: 16023019520 (Total), 8947105792 (Available)

Python info:
     Executable path: /home/user/.conda/envs/psychopy/bin/python3.10
     Version: 3.10.16 | packaged by conda-forge | (main, Dec  5 2024, 14:16:10) [GCC 13.3.0]
     (Selected) Installed Packages:
         numpy (2.2.1)
         scipy (1.15.1)
         matplotlib (3.10.0)
         pyglet (1.5.27)
         PyGLFW [not installed]
         pyo [not installed]
         psychtoolbox (3.0.19.14)
         wxPython (4.2.2)

OpenGL Info:
     Vendor: AMD
     Rendering engine: AMD Radeon 760M (radeonsi, gfx1103_r1, LLVM 19.1.5, DRM 3.59, 6.12.8-200.fc41.x86_64)
     OpenGL version: 4.6 (Compatibility Profile) Mesa 24.3.2
     Shaders supported:  True
     (Selected) Extensions:
         GL_ARB_multitexture: True
         GL_EXT_framebuffer_object: True
         GL_ARB_fragment_program: True
         GL_ARB_shader_objects: True
         GL_ARB_vertex_shader: True
         GL_ARB_texture_non_power_of_two: True
         GL_ARB_texture_float: True
         GL_STEREO: False
     max vertices in vertex array: 3000