SouthFox's Garden

Search IconA magnifying glass icon. 搜索
种植日期: 2025-10-22 上次照料: 2025-10-22

2025-10-22

Pylint 解决导入报错

pylint 中可能会找不到路径报错 Unable to import ,这时需要编写 .pylintrc (配置文件逐层向上查找)里写入:

[MASTER]
init-hook="import sys;sys.path.append('/path/to/project')"

python - PyLint “Unable to import” error - how to set PYTHONPATH? - Stack Ove…

评论