Adding PsychoPy environment to Anaconda Navigator

I am trying to add PsychoPy as an environment on Anaconda. I saw online many were using bash commands in the Anaconda Prompt, but since I have a MacOS, it does not come with Anaconda Prompt. Was wondering if anyone has figured out a solution to this. I created an Anaconda Cloud account and was trying to follow the instructions on the installation page of PsychoPy which includes the command conda install -c erik psychopy
(in which I substituted erik with my username).I am getting this in my command line:

Solving environment: failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://conda.binstar.org/cngold15/noarch/repodata.json
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
SSLError(MaxRetryError(‘HTTPSConnectionPool(host=‘conda.binstar.org’, port=443): Max retries exceeded with url: /cngold15/noarch/repodata.json (Caused by SSLError(SSLError(“bad handshake: Error([(‘SSL routines’, ‘ssl3_get_server_certificate’, ‘certificate verify failed’)],)”,),))’,),)

Let me know if anyone has any ideas of how to fix this. Thanks!

Hi Christie, you shouldn’t need to anything with online accounts or using a special prompt. You can do everything you need in the standard “Terminal” app on MacOS. See here for how to create and manage conda environments:

https://conda.io/docs/user-guide/tasks/manage-environments.html

e.g. something like the following to create a new environment:

conda create --name the_name_you_want

Switch to that environment:

source activate the_name_you_want

Install (most of) PsychoPy in that environment:

pip install psychopy

When you want to switch back to your default environment:

source deactivate

Hi Michael,

Thank you so much for your help! I am currently trying to do conda create --name myenv and the solving environment completes but I get an HTTP error. I also tried to run the same command inside the anaconda2 folder and was also unsuccessful. I am not sure why this is. Please let know if you’ve had a similar problem.

I got it! I had to remove the channel I made to connect to my login with anaconda so I was just left with the default! I have a PsychoPy environment in my Anaconda Navigator, do I launch Sypder or a program to be able to begin coding with psychopy?

You can use whatever text editor or IDE you want to edit your Python scripts. Some people will configure their IDE (e.g. PyCharm but maybe you can do the same with Spyder?) to actually run their scripts too. This gives the advantage of access to a debugger but that added layer can interfere with performance and can cause other issues. personally, I just launch PsychoPy and run the script from there, so that it is running in the same conditions as your production experiment will be using.

So others may be able to give you more advice here.

christie,

I’m having the same issue. Can you please elaborate what does “remove the channel I made to connect to my login with anaconda” means?
Also, which version of Python and PsychoPy are you installing on your environment ?

cheers

I have the Python 2.7. What I deleted was a channel I created to link my remote terminal to my Anaconda Cloud account. This was not needed for what I was doing but when I looked up my channels, they are in order of priority. My channel to my anaconda cloud account was why I was getting the original error that I did. Once I removed this connection to this channel, I was back to the default and I was able to install Psychopy using pip. I just followed the directions above provided by Michael.

hi Christiegoldstein!

It seems that I confront with the same problem after I followed the steps on the official website to install psychopy. 22and it seems that i have not log in to anaconda navigator online cloud. do you have any other suggestion for me to solve this problem?

tks a lot!

Juno Hsieh