Closed zm711 closed 1 year ago
Hi @zm711! I don't have much experience with python. Would it be possible for you to share the steps on how to update the variable? I am having this same issue.
@aepadilla4
This fix would only work if you're doing this from source. If you're trying to do this with pip
then #1193 explains two different ways that you can fix this issue. If you've already downloaded everything it might be easiest to just revert numpy to < 1.24 with
pip3 install --upgrade numpy==1.23.1
or if you're using plain pip it would be
pip install --upgrade numpy==1.23.1
@zm711 Thank you so much!
Can this update be included in a new pip release in the near future? Thanks! For now we will suggest that users pip install numpy==1.23
.
@carsen-stringer I don't know when there would be a new pypi release. There are a couple other features that are also missing from the current pip install (#1167 for example helps with users of linux). So if you have users that plan to use linux install from the .git
might still be the better option until/if a new pypi release is made. (also as of this writing there is an issue with python 3.12)
NumPy versions >1.24 will no longer work with code including np.bool rather than issue a warning. So I just changed np.bool to np.bool_ which should work for new and older versions of NumPy.