Since many VMs come with Python 3.8, it's essential to pick a NumPy version that works with it.
The latest version of NumPy that supports Python 3.8 is NumPy 1.24. So, when using a VM with Python 3.8, sticking with NumPy 1.24 or lower is the best case.
This way, the code can be executed smoothly without needing to upgrade Python.
When using a VM Environment for installing NumPy gives the following error:
Since many VMs come with Python 3.8, it's essential to pick a NumPy version that works with it. The latest version of NumPy that supports Python 3.8 is NumPy 1.24. So, when using a VM with Python 3.8, sticking with NumPy 1.24 or lower is the best case. This way, the code can be executed smoothly without needing to upgrade Python.