标签: python-2.7
我正在用Python编写一些测试用例。当我在测试用例中导入下面显示的包时,我没有收到任何错误。但是当我从命令行运行测试用例时,我收到的错误就好像没有导入包一样。以下是命令行:
python my_test.py
产生的错误:
File "my_test.py", line 11, in <module> from test1.test2.main import * ImportError: No module named test1.test2.main