Pycharm gets error “can't find '__main__' module”

后端 未结 7 824
轻奢々
轻奢々 2021-02-02 14:21

Whenever I try to run script via Virtualenv in pycharm, i get this error:

C:\\Users\\Costello\\PycharmProjects\\test\\venv\\Scripts\\python.exe C:/Users/Costello         


        
7条回答
  •  广开言路
    2021-02-02 14:33

    "Open 'Edit Run/Debug configurations' dialog" (on the top, next to "Run") "Edit Configurations" "script path:" --> select correct script path.

提交回复
热议问题