I just installed NumPy using pip and Python 3.9.7 on CentOS 7.9.
Installation went fine, but when I ran

>>> import numpy
>>> numpy.test()

I got a traceback, and this summary.

=========================== short test summary info ============================
ERROR  - ModuleNotFoundError: No module named 'hypothesis'
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!

It seems that both hypothesis and pytest are needed to run numpy.test().

We like to be able to run all the tests even after a pip install, and
being able to run some of the tests from pip-installed numpy is useful
as well.

May I suggest you add those two packages as dependencies for NumPy at
PyPi?  Neither are particularly large, both are generally useful, and
I think the potential utility for those who would ike to check on
their own system for anomalies outweighs the minimal impact on the
majority of users who would not use it but would also probably not
notice their presence.

If adding them as dependencies seems to heavy weight, or is otherwised
deemed undesirable, perhaps just a note in the Project Description at
https://pypi.org/project/numpy/ to say that, if you want to run tests,
those two packages will be needed?

Thanks,    -- bennet
_______________________________________________
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com

Reply via email to