3

Some python packages wont work in python 3.7 . So wanted to downgrade the default python version in google colab.Is it possible to do? If so how to proceed.Please guide me..

  • Duplicate of https://stackoverflow.com/questions/52467489/is-there-a-way-to-use-python-3-5-instead-of-3-6 – esqew Mar 24 '21 at 06:48
  • Does this answer your question? [Is there a way to use Python 3.5 instead of 3.6?](https://stackoverflow.com/questions/52467489/is-there-a-way-to-use-python-3-5-instead-of-3-6) – Alex Metsai Mar 24 '21 at 07:57

1 Answers1

1

You could install python 3.6 with miniconda:

%%bash

MINICONDA_INSTALLER_SCRIPT=Miniconda3-4.5.4-Linux-x86_64.sh
MINICONDA_PREFIX=/usr/local
wget https://repo.continuum.io/miniconda/$MINICONDA_INSTALLER_SCRIPT
chmod +x $MINICONDA_INSTALLER_SCRIPT
./$MINICONDA_INSTALLER_SCRIPT -b -f -p $MINICONDA_PREFIX

And add to path:

import sys
_ = (sys.path.append("/usr/local/lib/python3.6/site-packages"))
RJ Adriaansen
  • 3,782
  • 2
  • 5
  • 18
  • Getting error while running command .... %%bash cd /content/drive/MyDrive/Object_detection/models-master/research protoc object_detection/protos/*.proto --python_out=. cp object_detection/packages/tf2/setup.py . python -m pip install . – B.Thushar Marvel Mar 24 '21 at 13:48
  • subprocess.CalledProcessError: Command '('lsb_release', '-a')' died with . – B.Thushar Marvel Mar 24 '21 at 13:51
  • `%%bash cd /content/drive/MyDrive/Object_detection/models-master/research protoc object_detection/protos/*.proto --python_out=. cp object_detection/packages/tf2/setup.py . python -m pip install .` – B.Thushar Marvel Mar 24 '21 at 13:54
  • `subprocess.CalledProcessError: Command '('lsb_release', '-a')' died with .` – B.Thushar Marvel Mar 24 '21 at 13:55