每当我单击在pycharm中运行时,它都会返回以下错误:
"D:\Python\python.exe: can't find '__main__' module in 'D:/Python projects/Projects'
Process finished with exit code 1"
以下图片是我的pycharm设置,请帮我!
img2 project interpreter setting
答案 0 :(得分:2)
我认为您必须在调试配置中将脚本路径设置为test1.py的路径(而不是“ Projects”文件夹)。