I'm trying to import a class from a script that is located in another package:
project_folder | | package_1 | | __init__.py | |foo.py | | | package_2 | | __init__.py | | bar.py In the script: "bar.py", I have the following import:
from package_1.foo import Class This line generates the error:
ModuleNotFoundError: No module named 'package_1'
instancerefer to? How do you start your script (what command)?python bar.py.