Forums

Error when installing scipy

This error shows up when installing scipy - Error -5 while decompressing data: incomplete or truncated stream - ... I removed scipy from my requirements file but another package, xgboost, also had to install scipy causing the error again. What can I do?

Looks like someone else has had a similar issue - https://stackoverflow.com/questions/31878423/error-error-5-while-decompressing-data-incomplete-or-truncated-stream-when See if any of the answers helps you.

Yea.. that was helpful and I solved the issue. However, when my app tries to access scipy, I get this error:

from scipy._lib._version import NumpyVersion as _NumpyVersion ImportError: No module named _lib._version

Hmm, it sounds like the version of scipy you have is still corrupted somehow. Could you try uninstalling it and then reinstalling?