beyond top level package error in relative import

后端 未结 13 2268
醉梦人生
醉梦人生 2020-11-22 12:50

It seems there are already quite some questions here about relative import in python 3, but after going through many of them I still didn\'t find the answer for my issue. s

13条回答
  •  无人及你
    2020-11-22 13:23

    import sys
    sys.path.append("..") # Adds higher directory to python modules path.
    

    Try this. Worked for me.

提交回复
热议问题