How to use python 3.9.12 kernel and up

To follow up on Artem’s post:

I also getting this warning in the error log (attached to the notebook files), but it shouldn’t affect the installation of the package.

E: Couldn’t find any package by glob 'python3.11-venv

It seems, there are non-unix line ending characters in your init.sh file, please try creating init.sh using the following magics (will overwrite existing file):

!echo "sudo apt-get update && sudo apt-get install -y python3.11 python3.11-venv" > init.sh
!echo "/usr/bin/python3.11 -m venv /opt/python/envs/my311" >> init.sh
!echo "/opt/python/envs/my311/bin/python -m pip install ipykernel==5.5.3 ipython==7.31.1 ipython_genutils==0.2.0 jedi==0.17.2 lets-plot==3.0.0 aiohttp==3.8.3 pandas==1.5.3" >> init.sh
1 Like