[SOLVED]: NameError: name 'reload' is not defined | reload(sys) python 3

reload is a built-in in Python 2 but not in Python 3,

so the error you’re seeing is expected.

For >= Python3.4:

import importlibimportlib.reload(module)

For <= Python3.3:

import impimp.reload(module)

For Python2.x:

Use the in-built reload() function.

reload(module)