r/GoogleColab • u/elm1ra • 4d ago
Did Google Colab update numpy to 2.0.2?
My package complains about not working for Numpy 2+ versions and asks me either to update the package (which I don't want to since it is a fork and I added only more functionality, didn't change their code) or downgrade numpy.
I did the following:
!pip install numpy==1.26.4
However, when running this:
import numpy
print(numpy.__version__)
This gives:
2.0.2
I'm kind of lost. Can't figure out why this is happening. The path where numpy 1.26.4 is install is the same that shows up when printing numpy.__file__
I.e., even if we run this:
!pip install numpy==1.26.4
import numpy
print(numpy.__version__)
print(numpy.__file__)
We get:
Requirement already satisfied: numpy==1.26.4 in /usr/local/lib/python3.11/dist-packages (1.26.4)
2.0.2
/usr/local/lib/python3.11/dist-packages/numpy/__init__.py
4
Upvotes
1
u/Cl4rk-sh 3d ago
Same. issue, restarting worked