Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is the Run option disabled on PyCharm?

Tags:

pycharm

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.

like image 226
sorin Avatar asked Dec 03 '11 00:12

sorin


People also ask

How do I enable run in PyCharm?

Add Run/Debug configurations to the Services windowSelect View | Tool Windows | Services from the main menu or press Alt+8 . In the Services tool window, click Add service, then select Run Configuration Type. Select a run/debug configuration type from the list to add all configurations of this type to the window.

Why is Python not running in PyCharm?

To fix this go to Settings or press Ctrl+Alt+S go to Project > Project Interpreter and from the Project Interpreter dropdown select Show All then from the list select the python.exe on its current path and press the + symbol on your right.

How do I enable parallel run in PyCharm?

Allow parallel runSelect Run | Edit Configurations from the main menu or Edit Configurations from the run/debug configuration selector on the toolbar. Choose your configuration from the list. Select the Allow parallel run checkbox and click OK.


1 Answers

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.

like image 99
Jordan Stefanelli Avatar answered Dec 07 '22 19:12

Jordan Stefanelli