在pycharm中设置source路径

file–>setting–>project:server–>project structure

将放package的文件夹设置为source,这样import的模块类等,就是通过这些source文件夹作为根路径来查找,也就是在这些source文件夹中查找import的东西。

PyCharm下解决Unresolved Reference问题

 

相关文章:

  • 2021-08-16
  • 2021-06-03
  • 2021-08-25
  • 2021-12-03
  • 2021-04-17
猜你喜欢
  • 2021-11-15
  • 2021-06-06
  • 2021-11-02
相关资源
相似解决方案