Python error “ImportError: No module named”

后端 未结 29 2627
野的像风
野的像风 2020-11-22 07:46

Python is installed in a local directory.

My directory tree looks like this:

(local directory)/site-packages/toolkit/interface.py

29条回答
  •  渐次进展
    2020-11-22 08:09

    Does

    (local directory)/site-packages/toolkit
    

    have a __init__.py?

    To make import walk through your directories every directory must have a __init__.py file.

提交回复
热议问题