Skip to main content

Questions tagged [numpy-2.x]

The tag has no usage guidance.

numpy-2.x
0 votes
0 answers
49 views

Strange NumPy output in PyCharm

I'm compiling the exact same code in PyCharm and in CMD, but they're giving me two different outputs: PyCharm output - [np.float64(1.6000000000000003), -1] CMD output - [1.6000000000000003, -1] I ...
Ivan's user avatar
  • 9
0 votes
0 answers
60 views

Numpy error when reading Hdf5 file (Encountered in Numpy version 2.0.0)

I am using Python version 3.10.12. The following error was encountered when I was trying to read a hdf5 file using pandas (I am using Numpy version 2.0.0) The error is ---------------------------------...
Harshwardhan Fartale's user avatar
0 votes
1 answer
67 views

Python package dependecy upgrade from requirements.txt

I have a Python application with ~70 packages in requirements.txt file. It was running fine, but suddenly snowfalke-connector-python==2.7.3 and schemachange==3.4.2 started installing numpy==2.0.0 ...
palamuGuy's user avatar
  • 327
1 vote
2 answers
7k views

A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.0

I installed numpy 2.0.0 pip install numpy==2.0.0 import numpy as np np.__version__ #2.0.0 then I installed: pip install opencv-python Requirement already satisfied: opencv-python in /usr/local/lib/...
Free Palestine's user avatar
0 votes
2 answers
98 views

How to print a list of numpy.float32 values?

I run some simulations whose result is a dict like this: results = { 'this': 5, 'that': 6, 'those': [2.34, 5.67] } I save it in a human-readable format using code like this: s = '' for ...
anatolyg's user avatar
  • 28k
-1 votes
1 answer
312 views

How to stop numpy floats being displayed as "np.float64"?

I have a large library with many doctests. All doctests pass on my computer. When I push changes to GitHub, GitHub Actions runs the same tests in Python 3.8, 3.9, 3.10 and 3.11. All tests run ...
Erel Segal-Halevi's user avatar