Google Colab ssd.ipynb no python3.6

Please provide the following information when requesting support.

• Hardware (T4/V100/Xavier/Nano/etc)
-Google Colab A100
• Network Type (Detectnet_v2/Faster_rcnn/Yolo_v4/LPRnet/Mask_rcnn/Classification/etc)
-SSD
• TLT Version (Please run “tlt info --verbose” and share “docker_tag” here)
-not sure
• Training spec file(If have, please share here)
• How to reproduce the issue ? (This is for errors. Please share the command line and the detailed log here.)
hello I am in step 2.3 setup python environment of ssd.ipynb google colab notebook, when i run this cell:

import os
if os.environ["GOOGLE_COLAB"] == "1":
    os.environ["bash_script"] = "setup_env.sh"
else:
    os.environ["bash_script"] = "setup_env_desktop.sh"

!sed -i "s|PATH_TO_COLAB_NOTEBOOKS|$COLAB_NOTEBOOKS_PATH|g" /content/drive/MyDrive/nvidia-tao/tensorflow/$bash_script

!sh /content/drive/MyDrive/nvidia-tao/tensorflow/$bash_script

i get that python 3.6 is not found

i just found out that there is no python 3.6 its only 3.10 but the rest of the script deals with 3.6.

if os.environ.get("PYTHONPATH","") == "":
    os.environ["PYTHONPATH"] = ""
os.environ["PYTHONPATH"]+=":/opt/nvidia/"
if os.environ["GOOGLE_COLAB"] == "1":
    os.environ["PYTHONPATH"]+=":/usr/local/lib/python3.6/dist-packages/third_party/nvml"
else:
    os.environ["PYTHONPATH"]+=":/home_duplicate/rarunachalam/miniconda3/envs/tf_py_36/lib/python3.6/site-packages/third_party/nvml" # FIX MINICONDA PATH

because when i look in /usr/local/lib/ there is only python 3.10

Can you share the full log when you run above?

if i run it how the original cell that came with the google colab which is:

import os
if os.environ["GOOGLE_COLAB"] == "1":
    os.environ["bash_script"] = "setup_env.sh"
else:
    os.environ["bash_script"] = "setup_env_desktop.sh"

!sed -i "s|PATH_TO_COLAB_NOTEBOOKS|$COLAB_NOTEBOOKS_PATH|g" $COLAB_NOTEBOOKS_PATH/tensorflow/$bash_script

!sh $COLAB_NOTEBOOKS_PATH/tensorflow/$bash_script

i get:

sed: can't read /tensorflow/setup_env.sh: No such file or directory
sh: 0: cannot open /tensorflow/setup_env.sh: No such file

i changed the “$COLAB_NOTEBOOKS_PATH” to the path i found where tensorflow was which was “/content/drive/MyDrive/nvidia-tao” (which it was what i provided earlier) so here is the log you requested:

Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 363, in <module>
    addaptrepo = AddAptRepository()
  File "/usr/bin/add-apt-repository", line 41, in __init__
    self.distro.get_sources(self.sourceslist)
  File "/usr/local/lib/python3.10/dist-packages/aptsources/distro.py", line 91, in get_sources
    raise NoDistroTemplateException(
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Ubuntu/jammy
Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Hit:4 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  InRelease
Get:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [108 kB]
Get:6 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [731 kB]
Hit:7 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease
Get:8 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [734 kB]
Hit:9 https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu jammy InRelease
Hit:10 https://ppa.launchpadcontent.net/ubuntugis/ppa/ubuntu jammy InRelease
Fetched 1,802 kB in 1s (1,432 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libcasa-python3-6' for regex 'python3.6'
Note, selecting 'libpython3.6-stdlib' for regex 'python3.6'
Note, selecting 'python3.6-2to3' for regex 'python3.6'
The following additional packages will be installed:
  libcasa-casa6
The following NEW packages will be installed:
  libcasa-casa6 libcasa-python3-6
0 upgraded, 2 newly installed, 0 to remove and 8 not upgraded.
Need to get 1,088 kB of archives.
After this operation, 4,238 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy/universe amd64 libcasa-casa6 amd64 3.4.0-2build1 [1,000 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy/universe amd64 libcasa-python3-6 amd64 3.4.0-2build1 [88.2 kB]
Fetched 1,088 kB in 0s (3,790 kB/s)
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78, <> line 2.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin: 
Selecting previously unselected package libcasa-casa6:amd64.
(Reading database ... 129824 files and directories currently installed.)
Preparing to unpack .../libcasa-casa6_3.4.0-2build1_amd64.deb ...
Unpacking libcasa-casa6:amd64 (3.4.0-2build1) ...
Selecting previously unselected package libcasa-python3-6:amd64.
Preparing to unpack .../libcasa-python3-6_3.4.0-2build1_amd64.deb ...
Unpacking libcasa-python3-6:amd64 (3.4.0-2build1) ...
Setting up libcasa-casa6:amd64 (3.4.0-2build1) ...
Setting up libcasa-python3-6:amd64 (3.4.0-2build1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  python3-setuptools python3-wheel
Suggested packages:
  python-setuptools-doc
The following NEW packages will be installed:
  python3-pip python3-setuptools python3-wheel
0 upgraded, 3 newly installed, 0 to remove and 8 not upgraded.
Need to get 1,677 kB of archives.
After this operation, 8,965 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-setuptools all 59.6.0-1.2ubuntu0.22.04.1 [339 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 python3-wheel all 0.37.1-2ubuntu0.22.04.1 [32.0 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 python3-pip all 22.0.2+dfsg-1ubuntu0.3 [1,305 kB]
Fetched 1,677 kB in 0s (5,324 kB/s)
Selecting previously unselected package python3-setuptools.
(Reading database ... 129832 files and directories currently installed.)
Preparing to unpack .../python3-setuptools_59.6.0-1.2ubuntu0.22.04.1_all.deb ...
Unpacking python3-setuptools (59.6.0-1.2ubuntu0.22.04.1) ...
Selecting previously unselected package python3-wheel.
Preparing to unpack .../python3-wheel_0.37.1-2ubuntu0.22.04.1_all.deb ...
Unpacking python3-wheel (0.37.1-2ubuntu0.22.04.1) ...
Selecting previously unselected package python3-pip.
Preparing to unpack .../python3-pip_22.0.2+dfsg-1ubuntu0.3_all.deb ...
Unpacking python3-pip (22.0.2+dfsg-1ubuntu0.3) ...
Setting up python3-setuptools (59.6.0-1.2ubuntu0.22.04.1) ...
Setting up python3-wheel (0.37.1-2ubuntu0.22.04.1) ...
Setting up python3-pip (22.0.2+dfsg-1ubuntu0.3) ...
Processing triggers for man-db (2.10.2-1) ...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package python3.6-distutils
E: Couldn't find any package by glob 'python3.6-distutils'
E: Couldn't find any package by regex 'python3.6-distutils'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package python3.6-dev
E: Couldn't find any package by glob 'python3.6-dev'
E: Couldn't find any package by regex 'python3.6-dev'
rm: cannot remove '/usr/bin/python': No such file or directory
/content/drive/MyDrive/nvidia-tao/tensorflow/setup_env.sh: 16: python3.6: not found
/content/drive/MyDrive/nvidia-tao/tensorflow/setup_env.sh: 17: python3.6: not found
/content/drive/MyDrive/nvidia-tao/tensorflow/setup_env.sh: 18: python3.6: not found
/content/drive/MyDrive/nvidia-tao/tensorflow/setup_env.sh: 21: python3.6: not found
/content/drive/MyDrive/nvidia-tao/tensorflow/setup_env.sh: 22: python3.6: not found
--2023-07-22 14:03:58--  https://github.com/Kitware/CMake/releases/download/v3.14.4/cmake-3.14.4-Linux-x86_64.sh
Resolving github.com (github.com)... 140.82.114.3
Connecting to github.com (github.com)|140.82.114.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/537699/fc11d880-7650-11e9-969f-7442127f007a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230722T140358Z&X-Amz-Expires=300&X-Amz-Signature=8fea7fe33624aef79f5efee05c02cc418630fbb2e35a1a577800aad00f7ade78&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=537699&response-content-disposition=attachment%3B%20filename%3Dcmake-3.14.4-Linux-x86_64.sh&response-content-type=application%2Foctet-stream [following]
--2023-07-22 14:03:58--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/537699/fc11d880-7650-11e9-969f-7442127f007a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230722T140358Z&X-Amz-Expires=300&X-Amz-Signature=8fea7fe33624aef79f5efee05c02cc418630fbb2e35a1a577800aad00f7ade78&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=537699&response-content-disposition=attachment%3B%20filename%3Dcmake-3.14.4-Linux-x86_64.sh&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.110.133, 185.199.108.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 37196929 (35M) [application/octet-stream]
Saving to: ‘cmake-3.14.4-Linux-x86_64.sh’

cmake-3.14.4-Linux- 100%[===================>]  35.47M   111MB/s    in 0.3s    

2023-07-22 14:03:58 (111 MB/s) - ‘cmake-3.14.4-Linux-x86_64.sh’ saved [37196929/37196929]

CMake Installer Version: 3.14.4, Copyright (c) Kitware
This is a self-extracting archive.
The archive will be extracted to: /usr/local

Using target directory: /usr/local
Extracting, please wait...

Unpacking finished successfully
/content/drive/MyDrive/nvidia-tao/tensorflow/setup_env.sh: 32: python3.6: not found
/content/drive/MyDrive/nvidia-tao/tensorflow/setup_env.sh: 33: python3.6: not found
/content/drive/MyDrive/nvidia-tao/tensorflow/setup_env.sh: 34: python3.6: not found
/content/drive/MyDrive/nvidia-tao/tensorflow/setup_env.sh: 37: python3.6: not found

Did you run below cell? It will download the shell script.

yes i ran that cell, but for some reason when i run the cell to setup_env.sh i have to provide the specific path to the tensorflow, it just doesnt like the $COLAB_NOTEBOOKS_PATH.

It is not needed. Please double check.

you are correct. i was following the instructions on the colba notebook which have me switching between non-GPU and GPU instances and it does not tell you to re-run that cell which downloads the shell script. so i ran the colab notebook without switching instances and i still get the same error that python 3.6 is not found.

here is the cell that was ran

import os
if os.environ["GOOGLE_COLAB"] == "1":
    os.environ["bash_script"] = "setup_env.sh"
else:
    os.environ["bash_script"] = "setup_env_desktop.sh"

!sed -i "s|PATH_TO_COLAB_NOTEBOOKS|$COLAB_NOTEBOOKS_PATH|g" $COLAB_NOTEBOOKS_PATH/tensorflow/$bash_script

!sh $COLAB_NOTEBOOKS_PATH/tensorflow/$bash_script

here is the log:

Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 363, in <module>
    addaptrepo = AddAptRepository()
  File "/usr/bin/add-apt-repository", line 41, in __init__
    self.distro.get_sources(self.sourceslist)
  File "/usr/local/lib/python3.10/dist-packages/aptsources/distro.py", line 91, in get_sources
    raise NoDistroTemplateException(
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Ubuntu/jammy
Hit:1 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  InRelease
Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:3 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Hit:5 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease
Get:6 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [731 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [108 kB]
Hit:8 https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu jammy InRelease
Get:9 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [734 kB]
Hit:10 https://ppa.launchpadcontent.net/ubuntugis/ppa/ubuntu jammy InRelease
Fetched 1,802 kB in 3s (593 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libcasa-python3-6' for regex 'python3.6'
Note, selecting 'libpython3.6-stdlib' for regex 'python3.6'
Note, selecting 'python3.6-2to3' for regex 'python3.6'
The following additional packages will be installed:
  libcasa-casa6
The following NEW packages will be installed:
  libcasa-casa6 libcasa-python3-6
0 upgraded, 2 newly installed, 0 to remove and 8 not upgraded.
Need to get 1,088 kB of archives.
After this operation, 4,238 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy/universe amd64 libcasa-casa6 amd64 3.4.0-2build1 [1,000 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy/universe amd64 libcasa-python3-6 amd64 3.4.0-2build1 [88.2 kB]
Fetched 1,088 kB in 2s (459 kB/s)
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78, <> line 2.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin: 
Selecting previously unselected package libcasa-casa6:amd64.
(Reading database ... 129824 files and directories currently installed.)
Preparing to unpack .../libcasa-casa6_3.4.0-2build1_amd64.deb ...
Unpacking libcasa-casa6:amd64 (3.4.0-2build1) ...
Selecting previously unselected package libcasa-python3-6:amd64.
Preparing to unpack .../libcasa-python3-6_3.4.0-2build1_amd64.deb ...
Unpacking libcasa-python3-6:amd64 (3.4.0-2build1) ...
Setting up libcasa-casa6:amd64 (3.4.0-2build1) ...
Setting up libcasa-python3-6:amd64 (3.4.0-2build1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  python3-setuptools python3-wheel
Suggested packages:
  python-setuptools-doc
The following NEW packages will be installed:
  python3-pip python3-setuptools python3-wheel
0 upgraded, 3 newly installed, 0 to remove and 8 not upgraded.
Need to get 1,677 kB of archives.
After this operation, 8,965 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-setuptools all 59.6.0-1.2ubuntu0.22.04.1 [339 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 python3-wheel all 0.37.1-2ubuntu0.22.04.1 [32.0 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 python3-pip all 22.0.2+dfsg-1ubuntu0.3 [1,305 kB]
Fetched 1,677 kB in 2s (718 kB/s)
Selecting previously unselected package python3-setuptools.
(Reading database ... 129832 files and directories currently installed.)
Preparing to unpack .../python3-setuptools_59.6.0-1.2ubuntu0.22.04.1_all.deb ...
Unpacking python3-setuptools (59.6.0-1.2ubuntu0.22.04.1) ...
Selecting previously unselected package python3-wheel.
Preparing to unpack .../python3-wheel_0.37.1-2ubuntu0.22.04.1_all.deb ...
Unpacking python3-wheel (0.37.1-2ubuntu0.22.04.1) ...
Selecting previously unselected package python3-pip.
Preparing to unpack .../python3-pip_22.0.2+dfsg-1ubuntu0.3_all.deb ...
Unpacking python3-pip (22.0.2+dfsg-1ubuntu0.3) ...
Setting up python3-setuptools (59.6.0-1.2ubuntu0.22.04.1) ...
Setting up python3-wheel (0.37.1-2ubuntu0.22.04.1) ...
Setting up python3-pip (22.0.2+dfsg-1ubuntu0.3) ...
Processing triggers for man-db (2.10.2-1) ...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package python3.6-distutils
E: Couldn't find any package by glob 'python3.6-distutils'
E: Couldn't find any package by regex 'python3.6-distutils'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package python3.6-dev
E: Couldn't find any package by glob 'python3.6-dev'
E: Couldn't find any package by regex 'python3.6-dev'
rm: cannot remove '/usr/bin/python': No such file or directory
/content/drive/MyDrive/nvidia-tao/tensorflow/setup_env.sh: 16: python3.6: not found
/content/drive/MyDrive/nvidia-tao/tensorflow/setup_env.sh: 17: python3.6: not found
/content/drive/MyDrive/nvidia-tao/tensorflow/setup_env.sh: 18: python3.6: not found
/content/drive/MyDrive/nvidia-tao/tensorflow/setup_env.sh: 21: python3.6: not found
/content/drive/MyDrive/nvidia-tao/tensorflow/setup_env.sh: 22: python3.6: not found
--2023-07-22 14:44:10--  https://github.com/Kitware/CMake/releases/download/v3.14.4/cmake-3.14.4-Linux-x86_64.sh
Resolving github.com (github.com)... 20.27.177.113
Connecting to github.com (github.com)|20.27.177.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/537699/fc11d880-7650-11e9-969f-7442127f007a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230722T144410Z&X-Amz-Expires=300&X-Amz-Signature=243fb419ddd6715880cab1349e251223578b725addb9c58790b26d0926278789&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=537699&response-content-disposition=attachment%3B%20filename%3Dcmake-3.14.4-Linux-x86_64.sh&response-content-type=application%2Foctet-stream [following]
--2023-07-22 14:44:11--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/537699/fc11d880-7650-11e9-969f-7442127f007a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230722%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230722T144410Z&X-Amz-Expires=300&X-Amz-Signature=243fb419ddd6715880cab1349e251223578b725addb9c58790b26d0926278789&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=537699&response-content-disposition=attachment%3B%20filename%3Dcmake-3.14.4-Linux-x86_64.sh&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 37196929 (35M) [application/octet-stream]
Saving to: ‘cmake-3.14.4-Linux-x86_64.sh’

cmake-3.14.4-Linux- 100%[===================>]  35.47M  30.3MB/s    in 1.2s    

2023-07-22 14:44:12 (30.3 MB/s) - ‘cmake-3.14.4-Linux-x86_64.sh’ saved [37196929/37196929]

CMake Installer Version: 3.14.4, Copyright (c) Kitware
This is a self-extracting archive.
The archive will be extracted to: /usr/local

Using target directory: /usr/local
Extracting, please wait...

Unpacking finished successfully
/content/drive/MyDrive/nvidia-tao/tensorflow/setup_env.sh: 32: python3.6: not found
/content/drive/MyDrive/nvidia-tao/tensorflow/setup_env.sh: 33: python3.6: not found
/content/drive/MyDrive/nvidia-tao/tensorflow/setup_env.sh: 34: python3.6: not found
/content/drive/MyDrive/nvidia-tao/tensorflow/setup_env.sh: 37: python3.6: not found

It is a new unexpected issue. The same as Can't run the provided TAO toolkit sample code - #7 by Morganh.
Need to check further.

ok thank you for your time

Hello, @Morganh as I understand this problem is not related to TAO, would you be able to provide any updates and/or a time estimate of the issue? Im looking for other avenues to be able to use TAO on the cloud but have been unsuccessful at acquiring high end NVIDIA GPUs for a time limited project.

thank you

Hi,
TAO team is working on this colab issue. Will update to you if any. Thanks.

1 Like

The issue is caused due to an update in OS version to 22.04: add-apt-repository fails in Ubuntu 22.04 but works fine with 'fallback runtime version' · Issue #3867 · googlecolab/colabtools · GitHub
Please use below workaround.
Click on tools->Command Palette-> Use fallback runtime version

Then, below is working now.
!sudo add-apt-repository ppa:deadsnakes/ppa -y

1 Like

hello @Morganh , I was able to use fallback runtime version but still i believe the python environment was not set up correctly

here is the command i ran after selecting “Click on tools->Command Palette-> Use fallback runtime version”:

import os
if os.environ["GOOGLE_COLAB"] == "1":
    os.environ["bash_script"] = "setup_env.sh"
else:
    os.environ["bash_script"] = "setup_env_desktop.sh"
!sudo add-apt-repository ppa:deadsnakes/ppa -y
!sed -i "s|PATH_TO_COLAB_NOTEBOOKS|$COLAB_NOTEBOOKS_PATH|g" $COLAB_NOTEBOOKS_PATH/tensorflow/$bash_script

!sh $COLAB_NOTEBOOKS_PATH/tensorflow/$bash_script

and here is the output, sorry its quite long and im not sure what to do:

Get:1 http://ppa.launchpad.net/c2d4u.team/c2d4u4.0+/ubuntu focal InRelease [18.1 kB]
Get:2 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/ InRelease [3,622 B]
Hit:3 http://ppa.launchpad.net/cran/libgit2/ubuntu focal InRelease
Get:4 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  InRelease [1,581 B]
Hit:5 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease
Get:6 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal InRelease [24.3 kB]
Hit:7 http://ppa.launchpad.net/ubuntugis/ppa/ubuntu focal InRelease
Get:8 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:9 http://archive.ubuntu.com/ubuntu focal InRelease
Get:10 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:11 http://ppa.launchpad.net/c2d4u.team/c2d4u4.0+/ubuntu focal/main Sources [2,608 kB]
Get:12 http://ppa.launchpad.net/c2d4u.team/c2d4u4.0+/ubuntu focal/main amd64 Packages [1,232 kB]
Get:13 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/ Packages [85.2 kB]
Get:14 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  Packages [1,088 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:16 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal/main amd64 Packages [44.0 kB]
Get:17 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [2,597 kB]
Get:18 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [2,738 kB]
Get:19 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [1,085 kB]
Get:20 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [2,909 kB]
Get:21 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1,383 kB]
Get:22 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [3,389 kB]
Fetched 19.5 MB in 2s (9,013 kB/s)
Reading package lists... Done
Hit:1 http://ppa.launchpad.net/c2d4u.team/c2d4u4.0+/ubuntu focal InRelease
Hit:2 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/ InRelease
Hit:3 http://ppa.launchpad.net/cran/libgit2/ubuntu focal InRelease
Hit:4 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease
Hit:5 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  InRelease
Hit:6 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal InRelease
Hit:7 http://ppa.launchpad.net/ubuntugis/ppa/ubuntu focal InRelease
Hit:8 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:9 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:10 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:11 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
Hit:1 http://ppa.launchpad.net/c2d4u.team/c2d4u4.0+/ubuntu focal InRelease
Hit:2 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/ InRelease
Hit:3 http://ppa.launchpad.net/cran/libgit2/ubuntu focal InRelease
Hit:4 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease
Hit:5 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  InRelease
Hit:6 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal InRelease
Hit:7 http://ppa.launchpad.net/ubuntugis/ppa/ubuntu focal InRelease
Hit:8 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:9 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:10 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:11 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libpython3.6-minimal libpython3.6-stdlib python3.6-minimal
Suggested packages:
  python3.6-venv binfmt-support
The following NEW packages will be installed:
  libpython3.6-minimal libpython3.6-stdlib python3.6 python3.6-minimal
0 upgraded, 4 newly installed, 0 to remove and 42 not upgraded.
Need to get 4,294 kB of archives.
After this operation, 22.1 MB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal/main amd64 libpython3.6-minimal amd64 3.6.15-1+focal3 [569 kB]
Get:2 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal/main amd64 python3.6-minimal amd64 3.6.15-1+focal3 [1,718 kB]
Get:3 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal/main amd64 libpython3.6-stdlib amd64 3.6.15-1+focal3 [1,758 kB]
Get:4 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal/main amd64 python3.6 amd64 3.6.15-1+focal3 [248 kB]
Fetched 4,294 kB in 0s (12.9 MB/s)
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76, <> line 4.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin: 
Selecting previously unselected package libpython3.6-minimal:amd64.
(Reading database ... 123105 files and directories currently installed.)
Preparing to unpack .../libpython3.6-minimal_3.6.15-1+focal3_amd64.deb ...
Unpacking libpython3.6-minimal:amd64 (3.6.15-1+focal3) ...
Selecting previously unselected package python3.6-minimal.
Preparing to unpack .../python3.6-minimal_3.6.15-1+focal3_amd64.deb ...
Unpacking python3.6-minimal (3.6.15-1+focal3) ...
Selecting previously unselected package libpython3.6-stdlib:amd64.
Preparing to unpack .../libpython3.6-stdlib_3.6.15-1+focal3_amd64.deb ...
Unpacking libpython3.6-stdlib:amd64 (3.6.15-1+focal3) ...
Selecting previously unselected package python3.6.
Preparing to unpack .../python3.6_3.6.15-1+focal3_amd64.deb ...
Unpacking python3.6 (3.6.15-1+focal3) ...
Setting up libpython3.6-minimal:amd64 (3.6.15-1+focal3) ...
Setting up python3.6-minimal (3.6.15-1+focal3) ...
Setting up libpython3.6-stdlib:amd64 (3.6.15-1+focal3) ...
Setting up python3.6 (3.6.15-1+focal3) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  python-pip-whl python3-setuptools python3-wheel
Suggested packages:
  python-setuptools-doc
The following NEW packages will be installed:
  python-pip-whl python3-pip python3-setuptools python3-wheel
0 upgraded, 4 newly installed, 0 to remove and 42 not upgraded.
Need to get 2,389 kB of archives.
After this operation, 4,933 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 python-pip-whl all 20.0.2-5ubuntu1.9 [1,805 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-setuptools all 45.2.0-1ubuntu0.1 [330 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 python3-wheel all 0.34.2-1ubuntu0.1 [23.9 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 python3-pip all 20.0.2-5ubuntu1.9 [231 kB]
Fetched 2,389 kB in 1s (2,753 kB/s)
Selecting previously unselected package python-pip-whl.
(Reading database ... 123716 files and directories currently installed.)
Preparing to unpack .../python-pip-whl_20.0.2-5ubuntu1.9_all.deb ...
Unpacking python-pip-whl (20.0.2-5ubuntu1.9) ...
Selecting previously unselected package python3-setuptools.
Preparing to unpack .../python3-setuptools_45.2.0-1ubuntu0.1_all.deb ...
Unpacking python3-setuptools (45.2.0-1ubuntu0.1) ...
Selecting previously unselected package python3-wheel.
Preparing to unpack .../python3-wheel_0.34.2-1ubuntu0.1_all.deb ...
Unpacking python3-wheel (0.34.2-1ubuntu0.1) ...
Selecting previously unselected package python3-pip.
Preparing to unpack .../python3-pip_20.0.2-5ubuntu1.9_all.deb ...
Unpacking python3-pip (20.0.2-5ubuntu1.9) ...
Setting up python3-setuptools (45.2.0-1ubuntu0.1) ...
Setting up python3-wheel (0.34.2-1ubuntu0.1) ...
Setting up python-pip-whl (20.0.2-5ubuntu1.9) ...
Setting up python3-pip (20.0.2-5ubuntu1.9) ...
Processing triggers for man-db (2.9.1-1) ...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  python3.6-lib2to3
The following NEW packages will be installed:
  python3.6-distutils python3.6-lib2to3
0 upgraded, 2 newly installed, 0 to remove and 42 not upgraded.
Need to get 308 kB of archives.
After this operation, 1,232 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal/main amd64 python3.6-lib2to3 all 3.6.15-1+focal3 [122 kB]
Get:2 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal/main amd64 python3.6-distutils all 3.6.15-1+focal3 [187 kB]
Fetched 308 kB in 0s (2,632 kB/s)
Selecting previously unselected package python3.6-lib2to3.
(Reading database ... 124080 files and directories currently installed.)
Preparing to unpack .../python3.6-lib2to3_3.6.15-1+focal3_all.deb ...
Unpacking python3.6-lib2to3 (3.6.15-1+focal3) ...
Selecting previously unselected package python3.6-distutils.
Preparing to unpack .../python3.6-distutils_3.6.15-1+focal3_all.deb ...
Unpacking python3.6-distutils (3.6.15-1+focal3) ...
Setting up python3.6-lib2to3 (3.6.15-1+focal3) ...
Setting up python3.6-distutils (3.6.15-1+focal3) ...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libpython3.6 libpython3.6-dev
The following NEW packages will be installed:
  libpython3.6 libpython3.6-dev python3.6-dev
0 upgraded, 3 newly installed, 0 to remove and 42 not upgraded.
Need to get 5,329 kB of archives.
After this operation, 22.1 MB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal/main amd64 libpython3.6 amd64 3.6.15-1+focal3 [1,396 kB]
Get:2 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal/main amd64 libpython3.6-dev amd64 3.6.15-1+focal3 [3,433 kB]
Get:3 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal/main amd64 python3.6-dev amd64 3.6.15-1+focal3 [501 kB]
Fetched 5,329 kB in 0s (19.4 MB/s)
Selecting previously unselected package libpython3.6:amd64.
(Reading database ... 124219 files and directories currently installed.)
Preparing to unpack .../libpython3.6_3.6.15-1+focal3_amd64.deb ...
Unpacking libpython3.6:amd64 (3.6.15-1+focal3) ...
Selecting previously unselected package libpython3.6-dev:amd64.
Preparing to unpack .../libpython3.6-dev_3.6.15-1+focal3_amd64.deb ...
Unpacking libpython3.6-dev:amd64 (3.6.15-1+focal3) ...
Selecting previously unselected package python3.6-dev.
Preparing to unpack .../python3.6-dev_3.6.15-1+focal3_amd64.deb ...
Unpacking python3.6-dev (3.6.15-1+focal3) ...
Setting up libpython3.6:amd64 (3.6.15-1+focal3) ...
Setting up libpython3.6-dev:amd64 (3.6.15-1+focal3) ...
Setting up python3.6-dev (3.6.15-1+focal3) ...
Processing triggers for man-db (2.9.1-1) ...
rm: cannot remove '/usr/bin/python': No such file or directory
Collecting pip
  Downloading pip-21.3.1-py3-none-any.whl (1.7 MB)
     |████████████████████████████████| 1.7 MB 14.9 MB/s 
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.0.2
    Not uninstalling pip at /usr/lib/python3/dist-packages, outside environment /usr
    Can't uninstall 'pip'. No files were found to uninstall.
Successfully installed pip-21.3.1
Collecting google-colab
  Downloading google-colab-1.0.0.tar.gz (72 kB)
     |████████████████████████████████| 72 kB 1.2 MB/s             
  Preparing metadata (setup.py) ... done
Collecting google-auth~=1.4.0
  Downloading google_auth-1.4.2-py2.py3-none-any.whl (64 kB)
     |████████████████████████████████| 64 kB 2.7 MB/s             
Collecting ipykernel~=4.6.0
  Downloading ipykernel-4.6.1-py3-none-any.whl (104 kB)
     |████████████████████████████████| 104 kB 70.1 MB/s            
Collecting ipython~=5.5.0
  Downloading ipython-5.5.0-py3-none-any.whl (758 kB)
     |████████████████████████████████| 758 kB 58.2 MB/s            
Collecting notebook~=5.2.0
  Downloading notebook-5.2.2-py2.py3-none-any.whl (8.0 MB)
     |████████████████████████████████| 8.0 MB 64.8 MB/s            
Collecting pandas~=0.24.0
  Downloading pandas-0.24.2-cp36-cp36m-manylinux1_x86_64.whl (10.1 MB)
     |████████████████████████████████| 10.1 MB 62.6 MB/s            
Collecting portpicker~=1.2.0
  Downloading portpicker-1.2.0.tar.gz (17 kB)
  Preparing metadata (setup.py) ... done
Collecting requests~=2.21.0
  Downloading requests-2.21.0-py2.py3-none-any.whl (57 kB)
     |████████████████████████████████| 57 kB 6.1 MB/s             
Collecting six~=1.12.0
  Downloading six-1.12.0-py2.py3-none-any.whl (10 kB)
Collecting tornado~=4.5.0
  Downloading tornado-4.5.3.tar.gz (484 kB)
     |████████████████████████████████| 484 kB 97.5 MB/s            
  Preparing metadata (setup.py) ... done
Collecting cachetools>=2.0.0
  Downloading cachetools-4.2.4-py3-none-any.whl (10 kB)
Collecting pyasn1-modules>=0.2.1
  Downloading pyasn1_modules-0.3.0-py2.py3-none-any.whl (181 kB)
     |████████████████████████████████| 181 kB 78.5 MB/s            
Collecting rsa>=3.1.4
  Downloading rsa-4.9-py3-none-any.whl (34 kB)
Collecting traitlets>=4.1.0
  Downloading traitlets-4.3.3-py2.py3-none-any.whl (75 kB)
     |████████████████████████████████| 75 kB 4.7 MB/s             
Collecting jupyter-client
  Downloading jupyter_client-7.1.2-py3-none-any.whl (130 kB)
     |████████████████████████████████| 130 kB 92.9 MB/s            
Requirement already satisfied: setuptools>=18.5 in /usr/lib/python3/dist-packages (from ipython~=5.5.0->google-colab) (45.2.0)
Collecting simplegeneric>0.8
  Downloading simplegeneric-0.8.1.zip (12 kB)
  Preparing metadata (setup.py) ... done
Collecting pickleshare
  Downloading pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)
Collecting decorator
  Downloading decorator-5.1.1-py3-none-any.whl (9.1 kB)
Collecting prompt-toolkit<2.0.0,>=1.0.4
  Downloading prompt_toolkit-1.0.18-py3-none-any.whl (245 kB)
     |████████████████████████████████| 245 kB 74.2 MB/s            
Collecting pexpect
  Downloading pexpect-4.8.0-py2.py3-none-any.whl (59 kB)
     |████████████████████████████████| 59 kB 5.8 MB/s             
Collecting pygments
  Downloading Pygments-2.14.0-py3-none-any.whl (1.1 MB)
     |████████████████████████████████| 1.1 MB 79.6 MB/s            
Collecting ipython-genutils
  Downloading ipython_genutils-0.2.0-py2.py3-none-any.whl (26 kB)
Collecting nbformat
  Downloading nbformat-5.1.3-py3-none-any.whl (178 kB)
     |████████████████████████████████| 178 kB 89.2 MB/s            
Collecting nbconvert
  Downloading nbconvert-6.0.7-py3-none-any.whl (552 kB)
     |████████████████████████████████| 552 kB 57.0 MB/s            
Collecting terminado>=0.3.3
  Downloading terminado-0.12.1-py3-none-any.whl (15 kB)
Collecting jupyter-core
  Downloading jupyter_core-4.9.2-py3-none-any.whl (86 kB)
     |████████████████████████████████| 86 kB 6.4 MB/s             
Collecting jinja2
  Downloading Jinja2-3.0.3-py3-none-any.whl (133 kB)
     |████████████████████████████████| 133 kB 106.8 MB/s            
Collecting python-dateutil>=2.5.0
  Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
     |████████████████████████████████| 247 kB 91.1 MB/s            
Collecting pytz>=2011k
  Downloading pytz-2023.3-py2.py3-none-any.whl (502 kB)
     |████████████████████████████████| 502 kB 92.3 MB/s            
Collecting numpy>=1.12.0
  Downloading numpy-1.19.5-cp36-cp36m-manylinux2010_x86_64.whl (14.8 MB)
     |████████████████████████████████| 14.8 MB 58.0 MB/s            
Collecting certifi>=2017.4.17
  Downloading certifi-2023.7.22-py3-none-any.whl (158 kB)
     |████████████████████████████████| 158 kB 103.4 MB/s            
Collecting idna<2.9,>=2.5
  Downloading idna-2.8-py2.py3-none-any.whl (58 kB)
     |████████████████████████████████| 58 kB 6.9 MB/s             
Collecting chardet<3.1.0,>=3.0.2
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
     |████████████████████████████████| 133 kB 99.9 MB/s            
Collecting urllib3<1.25,>=1.21.1
  Downloading urllib3-1.24.3-py2.py3-none-any.whl (118 kB)
     |████████████████████████████████| 118 kB 93.9 MB/s            
Collecting wcwidth
  Downloading wcwidth-0.2.6-py2.py3-none-any.whl (29 kB)
Collecting pyasn1<0.6.0,>=0.4.6
  Downloading pyasn1-0.5.0-py2.py3-none-any.whl (83 kB)
     |████████████████████████████████| 83 kB 2.5 MB/s             
Collecting ptyprocess
  Downloading ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
Collecting MarkupSafe>=2.0
  Downloading MarkupSafe-2.0.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (30 kB)
Collecting entrypoints
  Downloading entrypoints-0.4-py3-none-any.whl (5.3 kB)
Collecting pyzmq>=13
  Downloading pyzmq-25.1.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.1 MB)
     |████████████████████████████████| 1.1 MB 92.0 MB/s            
Collecting nest-asyncio>=1.5
  Downloading nest_asyncio-1.5.7-py3-none-any.whl (5.3 kB)
Collecting jupyterlab-pygments
  Downloading jupyterlab_pygments-0.1.2-py2.py3-none-any.whl (4.6 kB)
Collecting testpath
  Downloading testpath-0.6.0-py3-none-any.whl (83 kB)
     |████████████████████████████████| 83 kB 3.0 MB/s             
Collecting pandocfilters>=1.4.1
  Downloading pandocfilters-1.5.0-py2.py3-none-any.whl (8.7 kB)
Collecting nbclient<0.6.0,>=0.5.0
  Downloading nbclient-0.5.9-py3-none-any.whl (69 kB)
     |████████████████████████████████| 69 kB 8.8 MB/s             
Collecting mistune<2,>=0.8.1
  Downloading mistune-0.8.4-py2.py3-none-any.whl (16 kB)
Collecting bleach
  Downloading bleach-4.1.0-py2.py3-none-any.whl (157 kB)
     |████████████████████████████████| 157 kB 79.1 MB/s            
Collecting defusedxml
  Downloading defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
Collecting jsonschema!=2.5.0,>=2.4
  Downloading jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
     |████████████████████████████████| 56 kB 4.5 MB/s             
Collecting importlib-metadata
  Downloading importlib_metadata-4.8.3-py3-none-any.whl (17 kB)
Collecting attrs>=17.4.0
  Downloading attrs-22.2.0-py3-none-any.whl (60 kB)
     |████████████████████████████████| 60 kB 6.8 MB/s             
Collecting pyrsistent>=0.14.0
  Downloading pyrsistent-0.18.0-cp36-cp36m-manylinux1_x86_64.whl (117 kB)
     |████████████████████████████████| 117 kB 94.8 MB/s            
Collecting async-generator
  Downloading async_generator-1.10-py3-none-any.whl (18 kB)
Collecting webencodings
  Downloading webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Collecting packaging
  Downloading packaging-21.3-py3-none-any.whl (40 kB)
     |████████████████████████████████| 40 kB 5.6 MB/s             
Collecting zipp>=0.5
  Downloading zipp-3.6.0-py3-none-any.whl (5.3 kB)
Collecting typing-extensions>=3.6.4
  Downloading typing_extensions-4.1.1-py3-none-any.whl (26 kB)
Collecting pyparsing!=3.0.5,>=2.0.2
  Downloading pyparsing-3.1.0-py3-none-any.whl (102 kB)
     |████████████████████████████████| 102 kB 110.1 MB/s            
Building wheels for collected packages: google-colab, portpicker, tornado, simplegeneric
  Building wheel for google-colab (setup.py) ... done
  Created wheel for google-colab: filename=google_colab-1.0.0-py2.py3-none-any.whl size=102274 sha256=bd09bb132758b4f9cc56b1a88757bd5a115c76db151167f74b0393dd4d968053
  Stored in directory: /root/.cache/pip/wheels/bd/8e/4e/4ded5bcfbef742f58343bedd6e993868ddf3772f8d1e7c02c8
  Building wheel for portpicker (setup.py) ... done
  Created wheel for portpicker: filename=portpicker-1.2.0-py3-none-any.whl size=13369 sha256=3094dedf9c5a4e2b6f182f914d3937e4ec3d67c866845f8d003e5d440a15f75f
  Stored in directory: /root/.cache/pip/wheels/c7/4c/3b/04310724e2522e9f078d0b2c54e844ea0541ef8f631d5a011a
  Building wheel for tornado (setup.py) ... done
  Created wheel for tornado: filename=tornado-4.5.3-cp36-cp36m-linux_x86_64.whl size=433516 sha256=b2696107098dd6d802a09c58a8e205910f6e4771e7af7cd145efc0a0b0d0dfd7
  Stored in directory: /root/.cache/pip/wheels/7c/26/a6/8fc2a26547829568bcafabbabe61ea5f9c449f97be752af46a
  Building wheel for simplegeneric (setup.py) ... done
  Created wheel for simplegeneric: filename=simplegeneric-0.8.1-py3-none-any.whl size=5073 sha256=11845d9c869495853a7507ed5782f194dcb041a5faf7b2dd21d5d83dc635e27c
  Stored in directory: /root/.cache/pip/wheels/aa/2e/cc/c837f9b4f1927c7bded8233b73a186b2d303daf0af7ecb07f6
Successfully built google-colab portpicker tornado simplegeneric
Installing collected packages: zipp, typing-extensions, six, ipython-genutils, decorator, traitlets, pyrsistent, importlib-metadata, attrs, wcwidth, tornado, pyzmq, python-dateutil, pyparsing, ptyprocess, nest-asyncio, jupyter-core, jsonschema, entrypoints, webencodings, simplegeneric, pygments, prompt-toolkit, pickleshare, pexpect, packaging, nbformat, MarkupSafe, jupyter-client, async-generator, testpath, pyasn1, pandocfilters, nbclient, mistune, jupyterlab-pygments, jinja2, ipython, defusedxml, bleach, urllib3, terminado, rsa, pytz, pyasn1-modules, numpy, nbconvert, ipykernel, idna, chardet, certifi, cachetools, requests, portpicker, pandas, notebook, google-auth, google-colab
Successfully installed MarkupSafe-2.0.1 async-generator-1.10 attrs-22.2.0 bleach-4.1.0 cachetools-4.2.4 certifi-2023.7.22 chardet-3.0.4 decorator-5.1.1 defusedxml-0.7.1 entrypoints-0.4 google-auth-1.4.2 google-colab-1.0.0 idna-2.8 importlib-metadata-4.8.3 ipykernel-4.6.1 ipython-5.5.0 ipython-genutils-0.2.0 jinja2-3.0.3 jsonschema-3.2.0 jupyter-client-7.1.2 jupyter-core-4.9.2 jupyterlab-pygments-0.1.2 mistune-0.8.4 nbclient-0.5.9 nbconvert-6.0.7 nbformat-5.1.3 nest-asyncio-1.5.7 notebook-5.2.2 numpy-1.19.5 packaging-21.3 pandas-0.24.2 pandocfilters-1.5.0 pexpect-4.8.0 pickleshare-0.7.5 portpicker-1.2.0 prompt-toolkit-1.0.18 ptyprocess-0.7.0 pyasn1-0.5.0 pyasn1-modules-0.3.0 pygments-2.14.0 pyparsing-3.1.0 pyrsistent-0.18.0 python-dateutil-2.8.2 pytz-2023.3 pyzmq-25.1.0 requests-2.21.0 rsa-4.9 simplegeneric-0.8.1 six-1.12.0 terminado-0.12.1 testpath-0.6.0 tornado-4.5.3 traitlets-4.3.3 typing-extensions-4.1.1 urllib3-1.24.3 wcwidth-0.2.6 webencodings-0.5.1 zipp-3.6.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Collecting nvidia-pyindex
  Downloading nvidia-pyindex-1.0.9.tar.gz (10 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: nvidia-pyindex
  Building wheel for nvidia-pyindex (setup.py) ... done
  Created wheel for nvidia-pyindex: filename=nvidia_pyindex-1.0.9-py3-none-any.whl size=8398 sha256=4f1e78c45eaa84f2768f441722ab6e2526edd7387711125bee94b2a60b4d0cee
  Stored in directory: /root/.cache/pip/wheels/1a/79/65/9cb980b5f481843cd9896e1579abc1c1f608b5f9e60ca90e03
Successfully built nvidia-pyindex
Installing collected packages: nvidia-pyindex
Successfully installed nvidia-pyindex-1.0.9
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Collecting nvidia-horovod==0.20.0+nv20.10
  Downloading https://developer.download.nvidia.com/compute/redist/nvidia-horovod/nvidia_horovod-0.20.0+nv20.10-cp36-cp36m-linux_x86_64.whl (17.7 MB)
     |████████████████████████████████| 17.7 MB 11.8 MB/s            
Collecting pyyaml
  Downloading PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (677 kB)
     |████████████████████████████████| 677 kB 13.2 MB/s            
Collecting cloudpickle
  Downloading cloudpickle-2.2.1-py3-none-any.whl (25 kB)
Collecting dataclasses
  Downloading dataclasses-0.8-py3-none-any.whl (19 kB)
Collecting psutil
  Downloading psutil-5.9.5-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (282 kB)
     |████████████████████████████████| 282 kB 103.2 MB/s            
Installing collected packages: pyyaml, psutil, dataclasses, cloudpickle, nvidia-horovod
Successfully installed cloudpickle-2.2.1 dataclasses-0.8 nvidia-horovod-0.20.0+nv20.10 psutil-5.9.5 pyyaml-6.0.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Collecting nvidia-tensorflow==1.15.4+nv20.10
  Downloading https://developer.download.nvidia.com/compute/redist/nvidia-tensorflow/nvidia_tensorflow-1.15.4+nv20.10-cp36-cp36m-linux_x86_64.whl (492.4 MB)
     |████████████████████████████████| 492.4 MB 9.7 kB/s            
Collecting astor>=0.6.0
  Downloading astor-0.8.1-py2.py3-none-any.whl (27 kB)
ERROR: Could not find a version that satisfies the requirement nvidia-tensorboard<1.16.0,>=1.15.0 (from nvidia-tensorflow) (from versions: 0.0.1.dev4, 0.0.1.dev5)
ERROR: No matching distribution found for nvidia-tensorboard<1.16.0,>=1.15.0
--2023-07-28 14:46:04--  https://github.com/Kitware/CMake/releases/download/v3.14.4/cmake-3.14.4-Linux-x86_64.sh
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/537699/fc11d880-7650-11e9-969f-7442127f007a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230728%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230728T144604Z&X-Amz-Expires=300&X-Amz-Signature=e43ff783b409e758d6ced6975509dbc27832674d2594970857e9524ea01cafff&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=537699&response-content-disposition=attachment%3B%20filename%3Dcmake-3.14.4-Linux-x86_64.sh&response-content-type=application%2Foctet-stream [following]
--2023-07-28 14:46:04--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/537699/fc11d880-7650-11e9-969f-7442127f007a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230728%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230728T144604Z&X-Amz-Expires=300&X-Amz-Signature=e43ff783b409e758d6ced6975509dbc27832674d2594970857e9524ea01cafff&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=537699&response-content-disposition=attachment%3B%20filename%3Dcmake-3.14.4-Linux-x86_64.sh&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.111.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 37196929 (35M) [application/octet-stream]
Saving to: ‘cmake-3.14.4-Linux-x86_64.sh’

cmake-3.14.4-Linux- 100%[===================>]  35.47M  49.2MB/s    in 0.7s    

2023-07-28 14:46:05 (49.2 MB/s) - ‘cmake-3.14.4-Linux-x86_64.sh’ saved [37196929/37196929]

CMake Installer Version: 3.14.4, Copyright (c) Kitware
This is a self-extracting archive.
The archive will be extracted to: /usr/local

Using target directory: /usr/local
Extracting, please wait...

Unpacking finished successfully
ERROR: Could not find a version that satisfies the requirement nvidia-eff==0.5.3 (from versions: 0.0.1.dev4, 0.0.1.dev5, 0.5.6)
ERROR: No matching distribution found for nvidia-eff==0.5.3
Collecting nvidia-tao==4.0.0
  Downloading nvidia_tao-4.0.0-py3-none-any.whl (155 kB)
     |████████████████████████████████| 155 kB 15.5 MB/s            
Collecting urllib3>=1.26.5
  Downloading urllib3-1.26.16-py2.py3-none-any.whl (143 kB)
     |████████████████████████████████| 143 kB 78.2 MB/s            
Requirement already satisfied: requests in /usr/local/lib/python3.6/dist-packages (from nvidia-tao==4.0.0) (2.21.0)
Collecting tabulate==0.8.7
  Downloading tabulate-0.8.7-py3-none-any.whl (24 kB)
Collecting websocket-client==0.57.0
  Downloading websocket_client-0.57.0-py2.py3-none-any.whl (200 kB)
     |████████████████████████████████| 200 kB 89.6 MB/s            
Collecting six==1.15.0
  Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting docker-pycreds==0.4.0
  Downloading docker_pycreds-0.4.0-py2.py3-none-any.whl (9.0 kB)
Collecting idna==2.10
  Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
     |████████████████████████████████| 58 kB 6.5 MB/s             
Requirement already satisfied: chardet==3.0.4 in /usr/local/lib/python3.6/dist-packages (from nvidia-tao==4.0.0) (3.0.4)
Collecting docker==4.3.1
  Downloading docker-4.3.1-py2.py3-none-any.whl (145 kB)
     |████████████████████████████████| 145 kB 100.9 MB/s            
Requirement already satisfied: certifi in /usr/local/lib/python3.6/dist-packages (from nvidia-tao==4.0.0) (2023.7.22)
Collecting requests
  Downloading requests-2.27.1-py2.py3-none-any.whl (63 kB)
     |████████████████████████████████| 63 kB 1.7 MB/s             
Collecting charset-normalizer~=2.0.0
  Downloading charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Installing collected packages: urllib3, six, idna, charset-normalizer, websocket-client, requests, tabulate, docker-pycreds, docker, nvidia-tao
  Attempting uninstall: urllib3
    Found existing installation: urllib3 1.24.3
    Uninstalling urllib3-1.24.3:
      Successfully uninstalled urllib3-1.24.3
  Attempting uninstall: six
    Found existing installation: six 1.12.0
    Uninstalling six-1.12.0:
      Successfully uninstalled six-1.12.0
  Attempting uninstall: idna
    Found existing installation: idna 2.8
    Uninstalling idna-2.8:
      Successfully uninstalled idna-2.8
  Attempting uninstall: requests
    Found existing installation: requests 2.21.0
    Uninstalling requests-2.21.0:
      Successfully uninstalled requests-2.21.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
google-colab 1.0.0 requires requests~=2.21.0, but you have requests 2.27.1 which is incompatible.
google-colab 1.0.0 requires six~=1.12.0, but you have six 1.15.0 which is incompatible.
Successfully installed charset-normalizer-2.0.12 docker-4.3.1 docker-pycreds-0.4.0 idna-2.10 nvidia-tao-4.0.0 requests-2.27.1 six-1.15.0 tabulate-0.8.7 urllib3-1.26.16 websocket-client-0.57.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
ERROR: Could not open requirements file: [Errno 2] No such file or directory: '/tensorflow/requirements-pip.txt'
Collecting nvidia-tao-tf1==4.0.0.657.dev0
  Downloading nvidia_tao_tf1-4.0.0.657.dev0-py3-none-any.whl (14.7 MB)
     |████████████████████████████████| 14.7 MB 13.0 MB/s            
Installing collected packages: nvidia-tao-tf1
Successfully installed nvidia-tao-tf1-4.0.0.657.dev0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

Again, thank you for your help.

You already fix above issue since you mention the latest status in Can't run the provided TAO toolkit sample code - #17 by castej10.

For below info, please ignore it. It will not affect training.

ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
google-colab 1.0.0 requires requests~=2.21.0, but you have requests 2.27.1 which is incompatible.
google-colab 1.0.0 requires six~=1.12.0, but you have six 1.15.0 which is incompatible.

ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
nvidia-tensorflow 1.15.4+nv20.10 requires numpy<1.19.0,>=1.16.0, but you have numpy 1.19.4 which is incompatible.
nvidia-tao 4.0.0 requires idna==2.10, but you have idna 2.7 which is incompatible.
nvidia-tao 4.0.0 requires six==1.15.0, but you have six 1.13.0 which is incompatible.
nvidia-tao 4.0.0 requires tabulate==0.8.7, but you have tabulate 0.7.5 which is incompatible.
nvidia-tao 4.0.0 requires urllib3>=1.26.5, but you have urllib3 1.24.3 which is incompatible.
google-colab 1.0.0 requires ipykernel~=4.6.0, but you have ipykernel 5.5.6 which is incompatible.
google-colab 1.0.0 requires ipython~=5.5.0, but you have ipython 7.16.3 which is incompatible.
google-colab 1.0.0 requires notebook~=5.2.0, but you have notebook 6.4.10 which is incompatible.
google-colab 1.0.0 requires pandas~=0.24.0, but you have pandas 0.25.3 which is incompatible.
google-colab 1.0.0 requires requests~=2.21.0, but you have requests 2.20.1 which is incompatible.
google-colab 1.0.0 requires six~=1.12.0, but you have six 1.13.0 which is incompatible.
google-colab 1.0.0 requires tornado~=4.5.0, but you have tornado 6.1 which is incompatible.

Currently when trying to Use fallback runtime version in Colab notbook for LPRNET model training

The notebook is returning an error message:

The fallback runtime version is unavailable at this time.

is there any solution for this

OK, can you run below successfully? If yes, we do not need the fallback runtime.
!sudo add-apt-repository ppa:deadsnakes/ppa -y

When executing the following command:

!sudo add-apt-repository ppa:deadsnakes/ppa -y

output:
Repository: ‘deb Index of /deadsnakes/ppa/ubuntu jammy main’
Description:
This PPA contains more recent Python versions packaged for Ubuntu.

Disclaimer: there’s no guarantee of timely updates in case of security problems or other issues. If you want to use them in a security-or-otherwise-critical environment (say, on a production server), you do so at your own risk.

Update Note

Please use this repository instead of ppa:fkrull/deadsnakes.

Reporting Issues

Issues can be reported in the master issue tracker at:

Supported Ubuntu and Python Versions

  • Ubuntu 20.04 (focal) Python3.5 - Python3.7, Python3.9 - Python3.11
  • Ubuntu 22.04 (jammy) Python3.7 - Python3.9, Python3.11
  • Note: Python2.7 (all), Python 3.8 (focal), Python 3.10 (jammy) are not provided by deadsnakes as upstream ubuntu provides those packages.

Why some packages aren’t built:

  • Note: for focal, older python versions require libssl<1.1 so they are not currently built
  • Note: for jammy, older python versions requre libssl<3 so they are not currently built
  • If you need these, reach out to asottile to set up a private ppa

The packages may also work on other versions of Ubuntu or Debian, but that is not tested or supported.

Packages

The packages provided here are loosely based on the debian upstream packages with some modifications to make them more usable as non-default pythons and on ubuntu. As such, the packages follow debian’s patterns and often do not include a full python distribution with just apt install python#.#. Here is a list of packages that may be useful along with the default install:

  • python#.#-dev: includes development headers for building C extensions
  • python#.#-venv: provides the standard library venv module
  • python#.#-distutils: provides the standard library distutils module
  • python#.#-lib2to3: provides the 2to3-#.# utility as well as the standard library lib2to3 module
  • python#.#-gdbm: provides the standard library dbm.gnu module
  • python#.#-tk: provides the standard library tkinter module

Third-Party Python Modules

Python modules in the official Ubuntu repositories are packaged to work with the Python interpreters from the official repositories. Accordingly, they generally won’t work with the Python interpreters from this PPA. As an exception, pure-Python modules for Python 3 will work, but any compiled extension modules won’t.

To install 3rd-party Python modules, you should use the common Python packaging tools. For an introduction into the Python packaging ecosystem and its tools, refer to the Python Packaging User Guide:
https://packaging.python.org/installing/

Sources

The package sources are available at:

Nightly Builds

For nightly builds, see ppa:deadsnakes/nightly nightly python builds : “deadsnakes” team
More info: New Python Versions : “deadsnakes” team
Adding repository.
Found existing deb entry in /etc/apt/sources.list.d/deadsnakes-ubuntu-ppa-jammy.list
Adding deb entry to /etc/apt/sources.list.d/deadsnakes-ubuntu-ppa-jammy.list
Found existing deb-src entry in /etc/apt/sources.list.d/deadsnakes-ubuntu-ppa-jammy.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/deadsnakes-ubuntu-ppa-jammy.list
Adding key to /etc/apt/trusted.gpg.d/deadsnakes-ubuntu-ppa.gpg with fingerprint F23C5A6CF475977595C89F51BA6932366A755776
Get:1 Index of /ubuntu jammy-security InRelease [110 kB]
Hit:2 Index of /ubuntu jammy InRelease
Get:3 Index of /ubuntu jammy-updates InRelease [119 kB]
Hit:4 Index of /c2d4u.team/c2d4u4.0+/ubuntu jammy InRelease
Get:5 Index of /ubuntu jammy-backports InRelease [109 kB]
Hit:6 Index of /compute/cuda/repos/ubuntu2204/x86_64 InRelease
Get:7 Ubuntu Packages For R - Brief Instructions jammy-cran40/ InRelease [3,626 B]
Hit:8 Index of /deadsnakes/ppa/ubuntu jammy InRelease
Hit:9 Index of /graphics-drivers/ppa/ubuntu jammy InRelease
Hit:10 Index of /ubuntugis/ppa/ubuntu jammy InRelease
Get:11 Index of /ubuntu jammy-security/main amd64 Packages [858 kB]
Get:12 Index of /ubuntu jammy-security/restricted amd64 Packages [897 kB]
Get:13 Index of /ubuntu jammy-security/universe amd64 Packages [979 kB]
Get:14 Index of /ubuntu jammy-updates/main amd64 Packages [1,129 kB]
Get:15 Index of /ubuntu jammy-updates/universe amd64 Packages [1,238 kB]
Fetched 5,443 kB in 2s (3,311 kB/s)
Reading package lists… Done

There is not previous error “aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Ubuntu/jammy”.
So, please go ahead without fallback runtime.

OK but while setting up Setup Python environment for training.

import os
if os.environ[“GOOGLE_COLAB”] == “1”:
os.environ[“bash_script”] = “setup_env.sh”
else:
os.environ[“bash_script”] = “setup_env_desktop.sh”

!sed -i “s|PATH_TO_COLAB_NOTEBOOKS|$COLAB_NOTEBOOKS_PATH|g” $COLAB_NOTEBOOKS_PATH/tensorflow/$bash_script

!sh $COLAB_NOTEBOOKS_PATH/tensorflow/$bash_script

output:

Repository: ‘deb Index of /deadsnakes/ppa/ubuntu jammy main’
Description:
This PPA contains more recent Python versions packaged for Ubuntu.

Disclaimer: there’s no guarantee of timely updates in case of security problems or other issues. If you want to use them in a security-or-otherwise-critical environment (say, on a production server), you do so at your own risk.

Update Note

Please use this repository instead of ppa:fkrull/deadsnakes.

Reporting Issues

Issues can be reported in the master issue tracker at:

Supported Ubuntu and Python Versions

  • Ubuntu 20.04 (focal) Python3.5 - Python3.7, Python3.9 - Python3.11
  • Ubuntu 22.04 (jammy) Python3.7 - Python3.9, Python3.11
  • Note: Python2.7 (all), Python 3.8 (focal), Python 3.10 (jammy) are not provided by deadsnakes as upstream ubuntu provides those packages.

Why some packages aren’t built:

  • Note: for focal, older python versions require libssl<1.1 so they are not currently built
  • Note: for jammy, older python versions requre libssl<3 so they are not currently built
  • If you need these, reach out to asottile to set up a private ppa

The packages may also work on other versions of Ubuntu or Debian, but that is not tested or supported.

Packages

The packages provided here are loosely based on the debian upstream packages with some modifications to make them more usable as non-default pythons and on ubuntu. As such, the packages follow debian’s patterns and often do not include a full python distribution with just apt install python#.#. Here is a list of packages that may be useful along with the default install:

  • python#.#-dev: includes development headers for building C extensions
  • python#.#-venv: provides the standard library venv module
  • python#.#-distutils: provides the standard library distutils module
  • python#.#-lib2to3: provides the 2to3-#.# utility as well as the standard library lib2to3 module
  • python#.#-gdbm: provides the standard library dbm.gnu module
  • python#.#-tk: provides the standard library tkinter module

Third-Party Python Modules

Python modules in the official Ubuntu repositories are packaged to work with the Python interpreters from the official repositories. Accordingly, they generally won’t work with the Python interpreters from this PPA. As an exception, pure-Python modules for Python 3 will work, but any compiled extension modules won’t.

To install 3rd-party Python modules, you should use the common Python packaging tools. For an introduction into the Python packaging ecosystem and its tools, refer to the Python Packaging User Guide:
https://packaging.python.org/installing/

Sources

The package sources are available at:

Nightly Builds

For nightly builds, see ppa:deadsnakes/nightly nightly python builds : “deadsnakes” team
More info: New Python Versions : “deadsnakes” team
Adding repository.
Found existing deb entry in /etc/apt/sources.list.d/deadsnakes-ubuntu-ppa-jammy.list
Adding deb entry to /etc/apt/sources.list.d/deadsnakes-ubuntu-ppa-jammy.list
Found existing deb-src entry in /etc/apt/sources.list.d/deadsnakes-ubuntu-ppa-jammy.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/deadsnakes-ubuntu-ppa-jammy.list
Adding key to /etc/apt/trusted.gpg.d/deadsnakes-ubuntu-ppa.gpg with fingerprint F23C5A6CF475977595C89F51BA6932366A755776
Get:1 Index of /ubuntu jammy-security InRelease [110 kB]
Get:2 Ubuntu Packages For R - Brief Instructions jammy-cran40/ InRelease [3,626 B]
Hit:3 Index of /compute/cuda/repos/ubuntu2204/x86_64 InRelease
Hit:4 Index of /ubuntu jammy InRelease
Get:5 Index of /ubuntu jammy-updates InRelease [119 kB]
Get:6 Index of /ubuntu jammy-backports InRelease [109 kB]
Get:7 Index of /ubuntu jammy-security/restricted amd64 Packages [897 kB]
Hit:8 Index of /c2d4u.team/c2d4u4.0+/ubuntu jammy InRelease
Get:9 Index of /ubuntu jammy-updates/main amd64 Packages [1,129 kB]
Get:10 Index of /ubuntu jammy-security/main amd64 Packages [858 kB]
Get:11 Index of /ubuntu jammy-security/universe amd64 Packages [979 kB]
Get:12 Index of /ubuntu jammy-updates/universe amd64 Packages [1,238 kB]
Hit:13 Index of /deadsnakes/ppa/ubuntu jammy InRelease
Hit:14 Index of /graphics-drivers/ppa/ubuntu jammy InRelease
Hit:15 Index of /ubuntugis/ppa/ubuntu jammy InRelease
Fetched 5,443 kB in 2s (2,742 kB/s)
Reading package lists… Done
Hit:1 Index of /ubuntu jammy-security InRelease
Hit:2 Ubuntu Packages For R - Brief Instructions jammy-cran40/ InRelease
Hit:3 Index of /ubuntu jammy InRelease
Hit:4 Index of /compute/cuda/repos/ubuntu2204/x86_64 InRelease
Hit:5 Index of /ubuntu jammy-updates InRelease
Hit:6 Index of /ubuntu jammy-backports InRelease
Hit:7 Index of /c2d4u.team/c2d4u4.0+/ubuntu jammy InRelease
Hit:8 Index of /deadsnakes/ppa/ubuntu jammy InRelease
Hit:9 Index of /graphics-drivers/ppa/ubuntu jammy InRelease
Hit:10 Index of /ubuntugis/ppa/ubuntu jammy InRelease
Reading package lists… Done
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Note, selecting ‘libcasa-python3-6’ for regex ‘python3.6’
Note, selecting ‘libpython3.6-stdlib’ for regex ‘python3.6’
Note, selecting ‘python3.6-2to3’ for regex ‘python3.6’
The following additional packages will be installed:
libcasa-casa6
The following NEW packages will be installed:
libcasa-casa6 libcasa-python3-6
0 upgraded, 2 newly installed, 0 to remove and 27 not upgraded.
Need to get 1,088 kB of archives.
After this operation, 4,238 kB of additional disk space will be used.
Get:1 Index of /ubuntu jammy/universe amd64 libcasa-casa6 amd64 3.4.0-2build1 [1,000 kB]
Get:2 Index of /ubuntu jammy/universe amd64 libcasa-python3-6 amd64 3.4.0-2build1 [88.2 kB]
Fetched 1,088 kB in 0s (2,823 kB/s)
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78, <> line 2.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Selecting previously unselected package libcasa-casa6:amd64.
(Reading database … 120831 files and directories currently installed.)
Preparing to unpack …/libcasa-casa6_3.4.0-2build1_amd64.deb …
Unpacking libcasa-casa6:amd64 (3.4.0-2build1) …
Selecting previously unselected package libcasa-python3-6:amd64.
Preparing to unpack …/libcasa-python3-6_3.4.0-2build1_amd64.deb …
Unpacking libcasa-python3-6:amd64 (3.4.0-2build1) …
Setting up libcasa-casa6:amd64 (3.4.0-2build1) …
Setting up libcasa-python3-6:amd64 (3.4.0-2build1) …
Processing triggers for libc-bin (2.35-0ubuntu3.1) …
/sbin/ldconfig.real: /usr/local/lib/libtbbbind_2_0.so.3 is not a symbolic link

/sbin/ldconfig.real: /usr/local/lib/libtbbbind_2_5.so.3 is not a symbolic link

/sbin/ldconfig.real: /usr/local/lib/libtbb.so.12 is not a symbolic link

/sbin/ldconfig.real: /usr/local/lib/libtbbmalloc.so.2 is not a symbolic link

/sbin/ldconfig.real: /usr/local/lib/libtbbmalloc_proxy.so.2 is not a symbolic link

/sbin/ldconfig.real: /usr/local/lib/libtbbbind.so.3 is not a symbolic link

Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following additional packages will be installed:
python3-setuptools python3-wheel
Suggested packages:
python-setuptools-doc
The following NEW packages will be installed:
python3-pip python3-setuptools python3-wheel
0 upgraded, 3 newly installed, 0 to remove and 27 not upgraded.
Need to get 1,677 kB of archives.
After this operation, 8,965 kB of additional disk space will be used.
Get:1 Index of /ubuntu jammy-updates/main amd64 python3-setuptools all 59.6.0-1.2ubuntu0.22.04.1 [339 kB]
Get:2 Index of /ubuntu jammy-updates/universe amd64 python3-wheel all 0.37.1-2ubuntu0.22.04.1 [32.0 kB]
Get:3 Index of /ubuntu jammy-updates/universe amd64 python3-pip all 22.0.2+dfsg-1ubuntu0.3 [1,305 kB]
Fetched 1,677 kB in 0s (4,097 kB/s)
Selecting previously unselected package python3-setuptools.
(Reading database … 120839 files and directories currently installed.)
Preparing to unpack …/python3-setuptools_59.6.0-1.2ubuntu0.22.04.1_all.deb …
Unpacking python3-setuptools (59.6.0-1.2ubuntu0.22.04.1) …
Selecting previously unselected package python3-wheel.
Preparing to unpack …/python3-wheel_0.37.1-2ubuntu0.22.04.1_all.deb …
Unpacking python3-wheel (0.37.1-2ubuntu0.22.04.1) …
Selecting previously unselected package python3-pip.
Preparing to unpack …/python3-pip_22.0.2+dfsg-1ubuntu0.3_all.deb …
Unpacking python3-pip (22.0.2+dfsg-1ubuntu0.3) …
Setting up python3-setuptools (59.6.0-1.2ubuntu0.22.04.1) …
Setting up python3-wheel (0.37.1-2ubuntu0.22.04.1) …
Setting up python3-pip (22.0.2+dfsg-1ubuntu0.3) …
Processing triggers for man-db (2.10.2-1) …
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: Unable to locate package python3.6-distutils
E: Couldn’t find any package by glob ‘python3.6-distutils’
E: Couldn’t find any package by regex ‘python3.6-distutils’
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: Unable to locate package python3.6-dev
E: Couldn’t find any package by glob ‘python3.6-dev’
E: Couldn’t find any package by regex ‘python3.6-dev’
rm: cannot remove ‘/usr/bin/python’: No such file or directory
/content/drive/MyDrive/ANPR_Nvidia_NGC/nvidia-tao/tensorflow/setup_env.sh: 16: python3.6: not found
/content/drive/MyDrive/ANPR_Nvidia_NGC/nvidia-tao/tensorflow/setup_env.sh: 17: python3.6: not found
/content/drive/MyDrive/ANPR_Nvidia_NGC/nvidia-tao/tensorflow/setup_env.sh: 18: python3.6: not found
/content/drive/MyDrive/ANPR_Nvidia_NGC/nvidia-tao/tensorflow/setup_env.sh: 19: python3.6: not found
/content/drive/MyDrive/ANPR_Nvidia_NGC/nvidia-tao/tensorflow/setup_env.sh: 22: python3.6: not found
/content/drive/MyDrive/ANPR_Nvidia_NGC/nvidia-tao/tensorflow/setup_env.sh: 23: python3.6: not found
–2023-08-17 09:25:18-- https://github.com/Kitware/CMake/releases/download/v3.14.4/cmake-3.14.4-Linux-x86_64.sh
Resolving github.com (github.com)… 140.82.114.4
Connecting to github.com (github.com)|140.82.114.4|:443… connected.
HTTP request sent, awaiting response… 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/537699/fc11d880-7650-11e9-969f-7442127f007a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230817%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230817T092518Z&X-Amz-Expires=300&X-Amz-Signature=8fd7573a530c9745ed5b0f3bd880f324ec0036ebaa68f33ba0712a444804b394&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=537699&response-content-disposition=attachment%3B%20filename%3Dcmake-3.14.4-Linux-x86_64.sh&response-content-type=application%2Foctet-stream [following]
–2023-08-17 09:25:18-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/537699/fc11d880-7650-11e9-969f-7442127f007a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230817%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230817T092518Z&X-Amz-Expires=300&X-Amz-Signature=8fd7573a530c9745ed5b0f3bd880f324ec0036ebaa68f33ba0712a444804b394&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=537699&response-content-disposition=attachment%3B%20filename%3Dcmake-3.14.4-Linux-x86_64.sh&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)… 185.199.108.133, 185.199.109.133, 185.199.110.133, …
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 37196929 (35M) [application/octet-stream]
Saving to: ‘cmake-3.14.4-Linux-x86_64.sh’

cmake-3.14.4-Linux- 100%[===================>] 35.47M 93.3MB/s in 0.4s

2023-08-17 09:25:19 (93.3 MB/s) - ‘cmake-3.14.4-Linux-x86_64.sh’ saved [37196929/37196929]

CMake Installer Version: 3.14.4, Copyright (c) Kitware
This is a self-extracting archive.
The archive will be extracted to: /usr/local

Using target directory: /usr/local
Extracting, please wait…

Unpacking finished successfully
/content/drive/MyDrive/ANPR_Nvidia_NGC/nvidia-tao/tensorflow/setup_env.sh: 33: python3.6: not found
/content/drive/MyDrive/ANPR_Nvidia_NGC/nvidia-tao/tensorflow/setup_env.sh: 34: python3.6: not found
/content/drive/MyDrive/ANPR_Nvidia_NGC/nvidia-tao/tensorflow/setup_env.sh: 35: python3.6: not found
/content/drive/MyDrive/ANPR_Nvidia_NGC/nvidia-tao/tensorflow/setup_env.sh: 38: python3.6: not found

Do i need to install any additional dependencies for it to work and install the required packages for training.

1 Like