No module named hypothesis error while running test

I am getting

no module named hypothesis

error when I ran the command

python test/ran_test.py

Running test_expecttest … [2019-10-07 05:34:41.949386]
Traceback (most recent call last):
File “test_expecttest.py”, line 8, in
import hypothesis
ModuleNotFoundError: No module named ‘hypothesis’
Traceback (most recent call last):
File “test/run_test.py”, line 458, in
main()
File “test/run_test.py”, line 450, in main
raise RuntimeError(message)
RuntimeError: test_expecttest failed!

If you use conda, run conda install hypothesis,for pip I believe it should be pip install hypothesis