Why is the Run option disabled on PyCharm?

sorin picture sorin · Dec 3, 2011 · Viewed 65.1k times · Source

I observed that on a new project the Run option is disabled and I expected to be able to run a script without having to manually add a configuration for it.

Answer

Jordan Stefanelli picture Jordan Stefanelli · Jul 1, 2016

If you're creating a project from existing source: and If the existing source directory contains a lot of data/files:

  • the Run option (and others, assumably) are disabled until PyCharm is finished indexing the contents in the project. You'll see a progress bar in the lower-right-hand corner.

You can speed this up by right-clicking on folders and selecting "Mark directory as..." -> "Excluded" if they aren't to be indexed.