AttributeError: No audio API found

Hi, I am new to Psychopy and I am currently attempting to run an experiment through my terminal on my MacBook (I had issues downloading the physical app so I decided to only use the program through my terminal). When I run the script, the following error appears

‘’'File “NBackTask.py”, line 11, in <module>

from psychopy import visual, core, data, event, logging, sound, gui

File “/anaconda2/envs/psychopy/lib/python2.7/site-packages/psychopy/sound.py”, line 659, in <module>

raise AttributeError(msg)

AttributeError: No audio API found. Try installing pyo 0.6.8+, or pygame 1.8+’’’

After receiving the error, I downloaded both pyo and pygame. However, even with the audio software downloaded, this error still appears. I have checked numerous times and the audio programs are definitely downloaded but psychopy still produces the error. Does anybody know how to get eliminate this problem? Thank you!