Relative imports summed up the problem: attempted relative import with no known parent package

This problem is generally encountered within the project wants to relative references, solution is running in the top-level project module.


Run test3.py:
This module can import utils under api_1_0 packet at a packet app of the function.

Guess you like

Origin www.cnblogs.com/plusUltra/p/10935968.html