psychopy.org | Reference | Downloads | Github

Trouble installing on Ubuntu 18.04

I’m having trouble installing PsychoPy on Ubuntu 18.04.1. Any suggestions?

$ pip3 install psychopy

Runs fine until PyQt5… then this happens:

Collecting pyqt5 (from psychopy)
Downloading https://files.pythonhosted.org/packages/3a/fb/eb51731f2dc7c22d8e1a63ba88fb702727b324c6352183a32f27f73b8116/PyQt5-5.14.1.tar.gz (3.2MB)
100% |████████████████████████████████| 3.2MB 613kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File “”, line 1, in
File “/usr/lib/python3.6/tokenize.py”, line 452, in open
buffer = _builtin_open(filename, ‘rb’)
FileNotFoundError: [Errno 2] No such file or directory: ‘/tmp/pip-build-0_kbkl9o/pyqt5/setup.py’

----------------------------------------

Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-0_kbkl9o/pyqt5/

====

andrew@PSYPC6188:~$ pip3 --version
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)

andrew@PSYPC6188:~$ python3 --version
Python 3.6.9

It looks like PyQt5 jumped to manylinux2014 wheels, which is only supported by pip versions >= 19.3 (ref). Without 2014 support, pip tries to install from source. Two easy options, I think:

a. Update pip (pip3 install --upgrade pip)
b. Install the previous release, which used manylinux1 (pip3 install pyqt5==5.14.0)

1 Like

Thank you that fixed the PyQt5 issue.

pip3 install --user ran to completion.

PsychoPy doesn’t launch however. I’ve fixed the first issue and am working on the second.

Can you provide more details, like:

  • What command do you use to launch PsychoPy?
  • If it doesn’t launch, are there errors? What is the full text of those errors?