2
$\begingroup$

I want to install some conda packages on Google Colab. Installation done successfully, but it wont detect it when we restart the new Colab session.

I followed the link "#https://stackoverflow.com/questions/55253498/how-do-i-install-a-library-permanently-in-colab", but still no luck.

Please let me know how to install python packages using conda + pip permanently on Google Colab.

$\endgroup$

1 Answer 1

1
$\begingroup$

There is no way to permanently install packages because the code is run on virtual machines that are sometimes recycled. You'll need to install it each time.

From the FAQ:

Where is my code executed? What happens to my execution state if I close the browser window?
Code is executed in a virtual machine dedicated to your account. Virtual machines are recycled when idle for a while, and have a maximum lifetime enforced by the system.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.