| Reference | Downloads | Github

Cant install psychoPy in Python3 (Mac)

Hello, I’m trying to install psychopy on python3 on mac but I get an error:
pip3 install psychopy
Collecting psychopy
Using cached PsychoPy-1.84.2.tar.gz
Complete output from command python egg_info:
Traceback (most recent call last):
File “”, line 1, in
File “/private/var/folders/39/88clnp910zlg54lrgy0d7qm40000gn/T/pip-build-ddca2hwz/psychopy/”, line 28, in
File “”, line 42, in
File “/private/var/folders/39/88clnp910zlg54lrgy0d7qm40000gn/T/pip-build-ddca2hwz/psychopy/psychopy/”, line 47, in
from import useVersion, ensureMinimal
File “/private/var/folders/39/88clnp910zlg54lrgy0d7qm40000gn/T/pip-build-ddca2hwz/psychopy/psychopy/tools/”, line 19, in
from psychopy import logging, tools, web
File “/private/var/folders/39/88clnp910zlg54lrgy0d7qm40000gn/T/pip-build-ddca2hwz/psychopy/psychopy/”, line 13, in
import httplib
ImportError: No module named ‘httplib’


Command “python egg_info” failed with error code 1 in /private/var/folders/39/88clnp910zlg54lrgy0d7qm40000gn/T/pip-build-ddca2hwz/psychopy/

Tried to install “httplib” but no luck there also:
pip3 install httplib
Collecting httplib
Could not find a version that satisfies the requirement httplib (from versions: )
No matching distribution found for httplib

Someone knows how should I install it?


Did you read the documentation on installation?

We’re currently working on Py3 compatibility. The repository version at github is nearly there but not quite ready for primetime. e.g. see some of the issues here (wx4 is needed for PY3 app to run and wx4 introduces various additional compatibility issues):

Yeah I read it. I’m trying to use psychopy in the code not as a package (“from psychopy import core, visual , event”).
The problem is not with code compatibility but with the installation itself.
The import line produce the following error:
ImportError: No module named 'psychopy’
and when I’m trying to pip install it I get the httplib error

Hi, can you please help? Still haven’t figured out how to work psychopy on python3

You’re trying to install PsychoPy v 1.84 into Python3 though. That isn’t possible.
As I said above, you need the current repository version from github, not a released version.

BUT if you’re not very experienced with Python I strongly recommend you DONT use the repository version or Python3 yet. It is CERTAIN to contain bugs and only suitable for experienced developers to test things out. If you want to run experiments and have them work then you should use the latest released version with Python2.7