Running Python file by double-click

后端 未结 5 1926
Happy的楠姐
Happy的楠姐 2020-12-31 12:53

I have really annoying problem, I cannot run a Python file just by double-clicking.

I have tried to set it to open the file with idle.bat but that only

5条回答
  •  时光说笑
    2020-12-31 13:21

    When I had both Py2 and Py3, and then removed the former, my script wouldn't run by double-clicking it either (but fine from console.) I realized my __pycache__ folder (same directory as the script) was the issue. Problem solved when deleted.

提交回复
热议问题