Skip to content
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

How to downgrade python version on Colab to 3.9 #25

Closed
abishpius opened this issue Jan 9, 2024 · 2 comments
Closed

How to downgrade python version on Colab to 3.9 #25

abishpius opened this issue Jan 9, 2024 · 2 comments

Comments

@abishpius
Copy link

https://www.geeksforgeeks.org/how-to-downgrade-python-version-in-colab/

tl;dr
step1: !sudo apt-get install python3.9
step2: !sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1

reap the benefits: !python --version

@evonneng
Copy link
Collaborator

evonneng commented Jan 9, 2024

Oh awesome! Thanks a bunch for this pointer. I’ll test it out and update the collab soon 😊

@abishpius
Copy link
Author

You will also need to use !pip3 in all the future executions of pip just fyi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants