Ask Your Question
0

basic questions on python version with sagemath. Why not 3.11.1?

asked 2023-02-10 11:29:37 +0200

Nasser gravatar image

updated 2023-02-10 12:09:32 +0200

I installed 9.8 rc1 but I see it is still using Python 3.10.9 (which is what is installed on the system)

>sage --version
SageMath version 9.8.rc1, Release Date: 2023-02-05

>sage --python --version
Python 3.10.9
>

Is the above the correct command to find which version of Python sagemath is build with?

But according to

https://github.com/sagemath/sage/wiki/Sage-9.8-Release-Tour

it says sagemath has been upgraded to Python 3.11.1

Python has been upgraded to 3.11.1.

The command I used to configure

 ./configure --no-create --no-recursion

This is brand new build on fresh Linux box on a virtual box. This is not an upgrade of an existing sagemath.

>which python
/usr/bin/python
>python --version
Python 3.10.9
>

I thought by not telling sagemath build to use the system Python, that it will use the latest python it wants which is 3.11.1

How to tell sagemath 9.8 rc1 to use its own python, which I assume will be 3.11.1 according to docs?

Does sagemath build come with its own Python installation? Or does the user need to upgrade to python 3.11.1 before building sagemath?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-02-10 14:26:54 +0200

eric_g gravatar image

Running

./configure --with-system-python3=no

should force Sage to build its own Python (3.11.1 in Sage 9.8.rc1).

edit flag offensive delete link more

Comments

Thanks. I thought the default was the other way around, which is to use sagemath Python. I am now building it with the option you showed.

Nasser gravatar imageNasser ( 2023-02-10 15:06:57 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2023-02-10 11:29:37 +0200

Seen: 380 times

Last updated: Feb 10 '23