Receiving Import Error: No Module named ***, but has __init__.py

后端 未结 4 1827
無奈伤痛
無奈伤痛 2021-01-02 04:24

I understand that this question has been asked several times but after reading them, and making the suggested fixes, I\'m still stumped.

My project structure is as f

4条回答
  •  粉色の甜心
    2021-01-02 05:13

    If anybody lands here:

    I encountered this error as well. In my case, I used ~/my/path/ at the path.sys.append(...), and the fix was replacing ~ with the explicit path name (you can inquire it if you type pwd when you are on linux shell, or use os.path.expanduser(..) )

提交回复
热议问题