Ask Your Question

Revision history [back]

According to the documentation, "by default, Sage will try to use system’s python3". In your case, it finds the Python 3.7.7.

Did you compile SageMath from source? If yes, you may force the usage of the Python which is shipped with SageMath instead of the one found on the system by doing:

make configure
./configure --without-system-python3
MAKE='make -j8' make

Or, you may force the usage of some version of python on your system by using instead:

make configure
./configure --with-python=/usr/bin/python3.8
MAKE='make -j8' make

...assuming your Python 3.8 is at this place:

$ which python3.8
/usr/bin/python3.8

According to the documentation, during the compilation of SageMath "by default, Sage will try to use system’s python3". In your case, it finds the Python 3.7.7.

Did you compile SageMath from source? If yes, you may force the usage of the Python which is shipped with SageMath instead of the one found on the system by doing:

make configure
./configure --without-system-python3
MAKE='make -j8' make

Or, you may force the usage of some version of python on your system by using instead:

make configure
./configure --with-python=/usr/bin/python3.8
MAKE='make -j8' make

...assuming your Python 3.8 is at this place:

$ which python3.8
/usr/bin/python3.8