I have been trying to add several paths to environment variable in windows-10 but still repeatedly getting Module not found error?
Mycurrent path to envirionment variables
when I try to run my training script I get Module not found error.
Please help me to add correct path to envirionment so that I would not get "module not found error" ever again.
It looks like a pretty complex directory structure. I wonder whether the fact you have a subdirectory with the same name (
regression_model
) as its parent is causing problems?In general what you need to make the following happen:
__init__.py
file inside itYou could try renaming one of the directories and simplifying what's in the environment variable to match the above.
If that doesn't work
to check what the script thinks is in the pythonpath.
(you can even try using
sys.path.append
within the script to put the right thing into the path if all else fails! Might help with debugging.)