Skip to content Skip to sidebar Skip to footer

Cannot Install Scipy With Pypy (g++ Build Error)

As of 2020, installing scipy with pypy is possible. (Is it possible to install scipy under pypy?) pypy3 -mpip install scipy However, the wheel fails with this kind of error: err

Solution 1:

Here is what worked for me. I unpacked the latest nightly

pypy -mensurepip
pypy -mpip install --upgrade pip setuptools wheel
pypy -mpip install numpy pybind11
pypy -mpip install scipy

Apparently you need to install pybind11 separately since it does not work properly in a PEP 517 isolated build.

Solution 2:

I've got the same problem but none of the solutions that I found helped me. I tried:

  • Upgrading pip
  • Downgrading pip
  • Use --no-cache-dir flag
  • Upgrading setuptools and wheel
  • Use --default-pip flag
  • Use --no-use-pep517 flag

So I try to install it manually with official manual and everything works fine.

git clone https://github.com/scipy/scipy.git
cd scipy
git submodule update --init
pypy -mpip install .

You may need to set BLAS, LAPACK and ATLAS libraries paths.

Post a Comment for "Cannot Install Scipy With Pypy (g++ Build Error)"