-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't activate my environment in the collab #10
Comments
@linda-farias I believe you're trying to activate with $ in the command. |
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: Thank you so much!! |
this helped me |
Seems like Colab is only able to use env only inside one code block. |
The |
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, |
%%bash |
@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 https://colab.research.google.com/drive/1rGsVd8rbjFXZzqdIw9LnuEJd3z1sgo7H?usp=sharing
|
This works for me. And you should add " !source activate myenv && " to every command you're going to call |
This works!!! |
worked for me too. but how can I run python snippet code directly in colab ? |
|
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
The text was updated successfully, but these errors were encountered: