I'm runing a python code for deep learning in google colab. Python 3.5 is required for that code. How can I install Python 3.5 version in google colab ?
Asked
Active
Viewed 1.2k times
7
-
File > New Python 3 Notebook? – OneCricketeer Mar 05 '19 at 01:33
-
I want Python version of 3.5 or above not 2 or 3. – star123 Mar 05 '19 at 01:44
-
"3" does not mean "3.0". I commonly means the current stable release of 3.x – OneCricketeer Mar 06 '19 at 19:20
-
Sub version matters. For example, google AI Platform only supports Python 3.5 as of June 21 2019. The model trained there may have problem if loading on the Python 3.6 environment (e.g., due to existence of Lambda layers). – Maosi Chen Jun 21 '19 at 20:51
4 Answers
0
!sudo apt-get install python 3.5
execute this code in colab cell. Once you are done restart you colab session.
-
1Please explain why you think that `sudo` is needed, in contrast to existing and upvoted answer which seems to disagree. – Yunnosch Oct 02 '22 at 19:32
-1
Installation of Python in colab 1- for installation code
!apt-get install python3.9
2- for version code
!python3.9 --version

moken
- 3,227
- 8
- 13
- 23
-
1As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jul 13 '23 at 16:26
-
2Answer needs supporting information Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](https://stackoverflow.com/help/how-to-answer). – moken Jul 15 '23 at 08:58