“executable not specified” error in Pycharm

2019-02-26 19:48发布

问题:

When I try to run a python script in Pycharm, I get this error message:

error running myscript: Executable is not specified

and the script does not run. How do I run my script through Pycharm?

回答1:

You need to designate an interpreter for the project.

File -> Settings -> Project -> Project Interpreter, and then select an interpreter at the right.

It looks like this on PyCharm Community Edition 4.0.3:

The official JetBrains guide to setting up an interpreter can be found here.