Open linda-farias opened 3 years ago
@linda-farias I believe you're trying to activate with $ in the command. It should be: conda activate metawraptest-env
I'm writing exactly that, but he doesn't recognize that command.
From what your shell reads, you have typed in $ in the command.
Taking it off should work fine
I found that on Google Colab the correct command is: ! activate + name. Then activated
Example:
! activate metawrap-env
Thank you so much!!
Hello, I have used this command
!activate alphapose
!conda env list
But it still don't change the environment in my google colab.
the same here
this helped me !conda env update -n base -f environment.yaml the new environment is generated and activated
this helped me !conda env update -n base -f environment.yaml the new environment is generated and activated
Just to inform, it doesn't work for me (env-dev.yml is my file)
Seems like Colab is only able to use env only inside one code block.
So use it like this: !conda activate myenv && call myscript
The condacolab
PyPi package may be useful:
!conda env update -n base -f conda-environment.yaml
Hope it would help.
I have a very similar issue. I manage to clone, install conda and create the environment in colab. However I can't activate it, the star (*) sign is not even appearing at all. My notebook is here, perhaps someone can take a look.
https://colab.research.google.com/drive/1rGsVd8rbjFXZzqdIw9LnuEJd3z1sgo7H?usp=sharing
I have tried ($) sign, source
command, update the base environment (as advised) but none work. stuck there for a couple of days already. help with any trick?
I have a very similar issue. I manage to clone, install conda and create the environment in colab. However I can't activate it, the star (*) sign is not even appearing at all. My notebook is here, perhaps someone can take a look.
https://colab.research.google.com/drive/1rGsVd8rbjFXZzqdIw9LnuEJd3z1sgo7H?usp=sharing
I have tried ($) sign,
source
command, update the base environment (as advised) but none work. stuck there for a couple of days already. help with any trick?
%%bash source activate nilmtk-env python import sys sys.path.append('/usr/local/lib/nilmtk-env/site-packages') print(sys.path) print("python version",sys.version)
@guccang did these lines worked for you? Did you try to update the colab notebook? I am trying to confirm after the installation using the line import nilmtk as ntk
that currently work on my laptop (I did create this environment in anaconda and running the code using jupyter notebook, but takes forever to train my data). Still no luck on my end :(
https://colab.research.google.com/drive/1rGsVd8rbjFXZzqdIw9LnuEJd3z1sgo7H?usp=sharing
`%%bash
source activate nilmtk-env
python
import sys
sys.path.append('/usr/local/lib/nilmtk-env/site-packages')
print(sys.path)
print("python version",sys.version`
This works for me. !source activate myenv && python -m spacy download en_core_web_sm
And you should add " !source activate myenv && " to every command you're going to call
This works!!!
This works for me. !source activate myenv && python -m spacy download en_core_web_sm
And you should add " !source activate myenv && " to every command you're going to call
worked for me too. but how can I run python snippet code directly in colab ?
This works for me. !source activate myenv && python -m spacy download en_core_web_sm
And you should add " !source activate myenv && " to every command you're going to call It worked thankyou so muchh after so long of waiting finally @yeeyou
I am in a class work in which I must develop a program in a virtual environment. My choice was '' Google Colab '', but when trying to activate my environment it always gives an error.
! conda create --name metawraptest-env python=3.7.10
But, when activating my environment, this appears:
$ conda activate metawraptest-env
Or this from here:
! conda activate metawraptest-env
I tried to use '' Shell '', but it also gave error when using
$ conda init <SHELL_NAME>
The environment was created, but I can't activate it...
! conda env list