I need to install a library that is only compatible with Python 3.5, is there a way to change the Python version in Colab from 3.6 to 3.5?
Asked
Active
Viewed 1.3k times
2 Answers
3
The only way to vary the python3 version is to connect to a local runtime.
![](../../users/profiles/364150.webp)
Craig Citro
- 6,046
- 1
- 26
- 27
2
You cannot directly change the environment for the notebook. After hours of exploration found a solution:
- Initialize a Ngork server in the colab notebook.
- connect to the Ngork server from a local terminal using ssh(Or use any editor which supports ssh connections)
- Install the required python version using the terminal.
- Install virtualenv.
- create a virtual environment by specifying the python version installed.
- Activate the environment.
- Work in that environment from the terminal directly.
Check out this link which provides to get detailed description on how to follow the steps.
![](../../users/profiles/11315129.webp)
Eswar Chitirala
- 169
- 1
- 9