在pycharm运行时出现报错can’t find ‘__ main__’ module:
pycharm执行文件时报错can't find '__main__' module的解决方法
解决方法:
在右上角点击Edit Configurations选项
pycharm执行文件时报错can't find '__main__' module的解决方法
更改Script path,选择项目文件目录下的.py文件
pycharm执行文件时报错can't find '__main__' module的解决方法
选择项目目录下的.py文件
pycharm执行文件时报错can't find '__main__' module的解决方法
再次点击运行即可:
pycharm执行文件时报错can't find '__main__' module的解决方法

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-03-08
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2021-11-02
  • 2022-01-28
猜你喜欢
  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2021-10-21
  • 2021-07-12
相关资源
相似解决方案