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

后端 未结 7 692
轻奢々
轻奢々 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:35

    Figured out whats wrong. In the configuration window in pycharm, I had to select proper script path:

提交回复
热议问题