looking at config.log, it rejected the python versionΒ Python 3.10.4 I had because of this
## -------------------------------------------------------- ##
## Checking whether SageMath should install SPKG python3... ##
## -------------------------------------------------------- ##
configure:31945: checking whether any of bzip2 liblzma libffi is installed as or will be installed as SPKG
configure:31954: result: no
configure:31958: checking for python3 >= 3.7.0, < 3.11.0 with modules sqlite3, ctypes, math, hashlib, crypt, socket, zlib, distutils.core, ssl
configure:32625: result:
configure:32649: checking ... whether /bin/python3 is good
CC=gcc CXX=g++ -std=gnu++11 conftest_venv/bin/python3 conftest.py --verbose build --build-base=conftest.dir
/mnt/g/nabbasi/data/CDROM/sagemath/sage-9.6.beta7/conftest.py:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils.core import setup
running build
running build_ext
building 'config_check_distutils' extension
creating conftest.dir
creating conftest.dir/temp.linux-x86_64-3.10
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/mnt/g/nabbasi/data/CDROM/sagemath/sage-9.6.beta7/conftest_venv/include -I/usr/include/python3.10 -c conftest.c -o conftest.dir/temp.linux-x86_64-3.10/conftest.o
conftest.c:75:10: fatal error: Python.h: No such file or directory
75 | #include <Python.h>
| ^~~~~~~~~~
compilation terminated.
error: command '/bin/gcc' failed with exit code 1
configure:33213: result: no, the version is in the supported range, and the modules can be imported, but distutils cannot build a C extension
configure:32649: checking ... whether /usr/bin/python3 is good
CC=gcc CXX=g++ -std=gnu++11 conftest_venv/bin/python3 conftest.py --verbose build --build-base=conftest.dir
/mnt/g/nabbasi/data/CDROM/sagemath/sage-9.6.beta7/conftest.py:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils.core import setup
running build
running build_ext
building 'config_check_distutils' extension
creating conftest.dir
creating conftest.dir/temp.linux-x86_64-3.10
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/mnt/g/nabbasi/data/CDROM/sagemath/sage-9.6.beta7/conftest_venv/include -I/usr/include/python3.10 -c conftest.c -o conftest.dir/temp.linux-x86_64-3.10/conftest.o
conftest.c:75:10: fatal error: Python.h: No such file or directory
75 | #include <Python.h>
| ^~~~~~~~~~
compilation terminated.
error: command '/bin/gcc' failed with exit code 1
configure:33213: result: no, the version is in the supported range, and the modules can be imported, but distutils cannot build a C extension
configure:33271: result:
configure:33275: to try to use a different system python, use ./configure --with-python=/path/to/python
configure:33302: no suitable system package found for SPKG python3