Closed ElsaLuz closed 3 years ago
Can you share the notebook + requirements.txt
so I can debug a bit? Thanks for the report!
^^ I'm getting the same error! It looks like an error with conda itself since I first tried without condacolab. This quick fix seems to work (temporarily) for now, https://stackoverflow.com/questions/66956203/conda-colab-error-collecting-package-metadata-current-repodata-json-failed-in
Some comments about Conda & Colab:
base
). Creating new environments is pointless because we won't be able to activate them in the running session. The workaround is to update base
with either conda install <packages>
or conda env update -n base -f environment.yml
.
!conda activate xxx
won't work because the !xxx
syntax creates a shell subprocess that won't propagate changes to the parent process (our Jupyter instance). It won't error out, but it won't have any effects either.requirements.txt
file is not a YML file. It's meant to be used with either conda create
or conda install
. Since we cannot create new environments, we need to use the syntax conda install -f requirements.txt
.requirements.txt
contains PyPI packages conda does not know how to install using conda install
. I suggest either re-exporting your working local environment with conda env export
. If this is not possible, you'll need to create it by hand.I edited your notebook to reflect these limitations. This is the YML file I crafted out of your TXT file. Take into account that you are possibly overwriting some key packages with that YML file. I suggest creating a slimmer env file with only the things you are missing in the condacolab installation, without restricting versions too much (e.g. Colab uses CUDA 11 but you are asking for CUDA 9.2 packages).
Rename to .yml after downloading:
@jaimergp Thank you so much for all the help. I can't thank you enough. You are a lifesaver! I am now able to train the model. :) Can I please delete the above files that I have uploaded, if it is okay for you?
Regards
@jacqueline-he I have followed the steps mentioned in the link but I wasn't able to resolve the problem. Jiamergp's solution fixed the problem though.
Can I please delete the above files that I have uploaded, if it is okay for you?
All good. Do you need me to delete my copies too? It'd be useful for other users to know how to use environment files within conda colab, though (but this can be done with other examples).
@jaimergp I just want to delete the ones that I have uploaded. It's okay if you want to keep yours, it will be helpful for other users. :)
Perfect! Marking this as solved then. Glad you are enjoying condacolab
!
@jaimergp Hi! Thank you for your guide. I have successfully installed Conda. But now when I try to run this line of code:
I am getting this output:
I tried to update Conda as well using this statement:
But I get this error while rerunning the above line of code, i.e,
Error:
Could you please help me out that what am I doing wrong here? Regards