Difficulty determining working environment for commands like conda and pip
I've downloaded OpenSesame and Rapunzel and have been in the process of upgrading different things in the code editor, as it says it's an Anaconda package. Following the instructions, I type this:
conda install seaborn -y
And I get a report of invalid syntax or that it's not in the proper environment. How do I figure out what environment I need to be in to get these commands to work? I've tried a cwd command, and I was told it's not defined.
I know python well for a beginner, but trying to figure out where I am in terms of environment is always tricky for me--I had similar issues with MATLAB, too.
Comments
Hi,
If you haven't installed Opensesame and Rapunzel with conda (and haven't installed conda separately), then there is no environment where you could install things into.
If you have installed conda, you can check with
conda env listwhat environments are available. Activate the one you need withconda activate <env_name>, and then install the package you need. I can recommend this cheatsheet for useful conda commands: https://docs.conda.io/projects/conda/en/4.6.0/_downloads/52a95608c49671267e40c689e0bc00ca/conda-cheatsheet.pdfEduard