Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
通常这是由于包中缺少init .py引起的。但我确实有我所有的init .py 文件。在 PyDev 包资源管理器中,包显示为黄色矩形,就像常规文件夹一样,而不是包图标。为什么是这样?我试过全部清理,全部构建,没有帮助。
听起来像是索引器或 PYTHONPATH 的问题。尝试Project -> Properties -> PyDev -PYTHONPATH, "add source folder"
Project -> Properties -> PyDev -PYTHONPATH, "add source folder"