I cloned an Otree project from a colleague via GitHub and want to set up the survey.
When i follow her instructions by typing conda activate otree_env
i get the error:
Could not find conda environment: otree_env.
When i type the complete path, like conda activate /home/path/to/environment/otree_env
, i get the error: Not a conda environment: home/path/to/environment/otree_env.
It seems conda does not discover the environment as conda info --envs
doesn't list the otree environment.
Can anybody help me out?
Unexpectedly I had a similar problem in Windows in Visual Studio Code terminal when I run
activate C:\...\myEnvironmentFolder
with the messageCould not find conda environment: C:...
The following command helped me:Then running
activate C:\...\myEnvironmentFolder
gave the desired effectIf you have the problem like this in cmd console, then, probably, you need to set the path in