| Reference | Downloads | Github

Pip download not recognised in PsychoPy


I’ve downloaded a module called objgraph to track for a memory leak:

I downloaded it using pip on the main terminal (following this instructional video: )

objgraph now works in python (using IDLE), but if I call it in PsychoPy it doesn’t. Sorry if this is a stupid question, but how do I get it to work in PsychoPy?


Hi @Sam_Leak, how have you installed PsychoPy?


Hi @dvbridges - I’ve been downloading the StandalonePsychoPy versions from

Could that be the problem?


Just a wild guess (from not knowing your exact error message), but could it be that your IDLE uses a different path than Psychopy?


import sys

In both your PsychoPy shell and your IDLE interface. Are they listing the same directories?


Thanks @Cesco

Yes, the system path is different for PsychoPy and IDLE:


[’’, ‘/Users/sam/Documents’, ‘/Library/Frameworks/Python.framework/Versions/2.7/lib/’, ‘/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7’, ‘/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin’, ‘/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac’, ‘/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages’, ‘/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk’, ‘/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old’, ‘/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload’, ‘/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages’]


[’/Applications/’, ‘/Applications/’, ‘/Applications/’, ‘/Applications/’, ‘/Applications/’, ‘/Applications/’, ‘/Applications/’, ‘/Applications/’, ‘/Applications/’, ‘/Applications/’, ‘/Applications/’]

What do you reckon I should do?


You’ve installed that package to your standard python installation but standalone PsychoPy stands alone! You can add other modules to the PsychoPy path (if the module is compatible with this python version) as described below