[Python] Pycharm won't run program

Discussão em 'Python' iniciado por Stack, Dezembro 1, 2024.

  1. Stack

    Stack Membro Participativo

    I'm learning Python through a youtube tutorial and took a break of over a month to deal with life. When I returned and tried to run a program I created along with the instructor in Pycharm (Community 2020.2.1) it gives me this error in the console:


    Error:Cannot run program "/home/user/PycharmProjects/HelloWorld/venv/bin/python" (in directory "/home/user/PycharmProjects/HelloWorld"): error=2, No such file or directory
    ​

    Except I can browse to /home/user/PycharmProjects/HelloWorld/venv/bin/, and see the "python" file. Running the file by double-clicking on it returns the following error in Pycharm:


    Cannot find file '/home/user/PycharmProjects/HelloWorld/venv/bin/python'
    ​

    When I go to create a new project, the New Project window does not list any interpreter. Is that my issue?

    I've tried reinstalling Pycharm and multiple solutions from Stack and other resources without success. I had no issues with Pycharm at all in July. If it matters; this is the Pycharm that's available in the Linux Mint 19.3 Software Manager.

    How can I fix this? Why would taking a break cause this issue?

    Continue reading...

Compartilhe esta Página