“executable not specified” error in Pycharm

2019-02-26 19:09发布

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条回答
Anthone
2楼-- · 2019-02-26 19:47

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:

File -> Settings

Project -> Project Interpreter -> Select Interpreter

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

查看更多
登录 后发表回答