ModuleNotFoundError: No module named 'cm'
michaeltan53 opened this issue · comments
ModuleNotFoundError: No module named 'cm'
How to solve this problem when importing classes from cm package? Does it mean that the project have to be built first?
The 'cm' module is already in the directory of 'consistency_models-main'. If your current directory where you run *.py (or other program) is not the same path as ‘cm’, then your "ModuleNotFoundError: No module named 'cm'" will occour.
The 'cm' module is already in the directory of 'consistency_models-main'. If your current directory where you run *.py (or other program) is not the same path as ‘cm’, then your "ModuleNotFoundError: No module named 'cm'" will occour.
i run ./scripts/cm_train.py,but still meet same error.
I haver solve this problem, run 'python cm_train.py' and add 'sys.path.append('../')' in cm_train.py