Trying to import class from file in root directory - ImportError: attempted relative import with no known parent package

后端 未结 0 1878
温柔的废话
温柔的废话 2021-02-07 01:17

My project directory structure is as follows:

root
|  Perceptron
   |  __init__.py
   |  perceptron.py
   |  perceptron_tests.py
|  utils
|  neural_network.py


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题