File execution error in pycharm

Asked

Viewed 69 times

-1

Good morning, everyone, I’m experiencing a boring situation that I’m having trouble solving. When running the game I’m developing the following image appears: Erro running main

Everything was fine before, the program was running normal and today I see this. When entering File / Settings / Build,extencions,Deployment / console / python console this appears: invalid

I’m not sure what happened and how to fix it, someone there has some idea?

  • 1

    you need to put the correct python path. If vc installed via anaconda, open the anaconda terminal and type which python that it will print the correct path. Then just replace the address in the corresponding entry in pycharm

1 answer

0

Try selecting another interpreter, if it doesn’t work, download python again, restart pycharm (you can restart the machine itself if you want), and try changing the interpreter (put it in the one that wasn’t before)

If it doesn’t work, try putting it in "Interpreter options"

C:\Users\<localização do venv>\venv\Scripts\python.exe

In my case for example, it was:

C:\Users\Syri\Desktop\feitos\venv\Scripts\python.exe

Try it and see if it works

I hope I’ve helped!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.