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

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

    Go to "Edit Configuration" and only speciy your filename like filename.py

    Existing path -----> C:\Users\np4\PycharmProjects\TEST\venv

    Try with this -----> C:\Users\np4\PycharmProjects\TEST\venv\MultiSites.py

提交回复
热议问题