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

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

    In Pycharm (Ubuntu):

    1. Create New Project
    2. Give Project Name
    3. Right Click on bin folder
    4. Create New Python File
    5. Write Your Code
    6. Upper Right Side: Add Configuration
    7. Left side: right click on "+" sign
    8. Input full file name
    9. Home/Downloads/myfile.py as "Script path"
    10. python 2.x/3.x as Python Interpreter
    11. Click on apply / ok
    0 讨论(0)
提交回复
热议问题