Trouble with installation of Sage into a python venv

asked 0 years ago

yanik gravatar image

Hey,

I am trying to install Sage into my python venv following the installation instructions from the README.

However, it keeps failing on the (sage-venv) $ python3 -m pip install -v sage_conf step. I get the following error message:

cp: conftest.py: No such file or directory ./configure: line 3: ./real_configure: No such file or directory mv: rename bak_conftest.py to conftest.py: No such file or directory configure failed; this may be caused by missing build prerequisites.

I am using Python 3.11.9 and pip 25.0.1 but I have also tried with Python 3.13.3 and got the same error message.

I am on macOS Sequioa Version 15.4

The error message tells me that:
configure failed; this may be caused by missing build prerequisites. You can install the required build prerequisites using the following shell command brew install bzip2 xz libffi

But I have these packages installed.

When I check in the .sage folder I see that conftest.py is indeed missing.

Best regards

Preview: (hide)