Python error “ImportError: No module named”

后端 未结 29 2948
野的像风
野的像风 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 07:53

    Using PyCharm (part of the JetBrains suite) you need to define your script directory as Source:
    Right Click > Mark Directory as > Sources Root

提交回复
热议问题