How to upgrade python 2.7 of Jupiter Notebook (SageMath 8.8)

41 Views Asked by At

I am using SageMath Notebook 8.8 where I have python 2.7. How can I update the python version of Notebook to 3.12?

As I am running a code where I receive a lot of syntax errors and when I search for the solution I see that it is because of the version of the python (for example "def print(self):" gives me syntax error on my current version)

I want to see python3 here:

enter image description here

I have tried the lines below (using in this question):

python2 -m pip install ipykernel
python2 -m ipykernel install --user

python3 -m pip install ipykernel
python3 -m ipykernel install --user

but I receive this error on the line python3 -m pip install ipykernel:

ERROR: Could not find a version that satisfies the requirement ipykernel (from versions: none)
ERROR: No matching distribution found for ipykernel

(I am using Windows 10 home edition, and I have python 3.9.13 on it. Can I add it to my Jupiter Notebook?)

0

There are 0 best solutions below