How to Solve NameError: name 'numpy' is not defined -- test_package

Solution: Import the 'numpy' module

To Solve the error, add the following line to the top of your code.

from test_package import numpy

 

For more information:
Python test_package numpy