scipy: BUG: Cannot compile for 3.11

Describe your issue.

Version used Uploading scipy-compile.log… : Using cached scipy-1.6.1.tar.gz (27.3 MB)

I’ve attached the log file and the suspected issue -

Reproducing Code Example

pip install scipy
Pip version - pip 22.1.1 from /home/rishacha/.local/lib/python3.11/site-packages/pip (python 3.11)
Python version - Python 3.11.0b1
OS - elementaryOS

Error message

2022-05-24T23:43:03,313   scipy/cluster/_vq.c:196:12: fatal error: longintrepr.h: No such file or directory
2022-05-24T23:43:03,313     196 |   #include "longintrepr.h"
2022-05-24T23:43:03,313         |            ^~~~~~~~~~~~~~~
2022-05-24T23:43:03,313   compilation terminated.

SciPy/NumPy/Python version information

import sys, numpy; print("Numpy version: “, numpy.version,”\nSys version: ", sys.version_info) Numpy version: 1.22.3 Sys version: sys.version_info(major=3, minor=11, micro=0, releaselevel=‘beta’, serial=1)

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 23 (14 by maintainers)

Most upvoted comments

You can install that already with pip install scipy --pre.

@dstansby SciPy 1.9.rc2 is already up on PyPI, final release should not be more than 2 weeks off. And we’ll add 3.11 wheels after Python 3.11 RC1 is out (which is the point in the release cycle where Python is ABI-stable).

I don’t know why you are seeing this issue. Did you try from a new environment from scratch? Including cloning SciPy?

I don’t want to go the conda route. Is there no guide for normal python-based compilation?

Why don’t you want to use conda? You can have a look at some of our CI which does not use conda. It’s much more troublesome…

As you’ve seen we have other guides but they are less maintained (again we are currently rewriting our contributing doc).

cc @melissawm FYI