'Enable PYCharm auto-Imports for python [duplicate]

Anyone know how to actually enable auto imports? I've tried in the pref's auto-import settings, cleared my project cache and restarted but I never get any auto import prompts!

On mac, running latest pyCharm CE version.

this is not simply a matter of enabling the setting; that setting is enabled in the preferences but still I get no suggestions for auto-imports

ie import requests gets me nothing no popup, no suggestion to import it etc.



Solution 1:[1]

You can simply follow these steps:

  1. In the Settings/Preferences dialog (Ctrl+Alt+S), click Editor | General | Auto Import.
  2. In the Python section, configure automatic imports:
    • Select Show import popup to automatically display an import popup when tying the name of a class that lacks an import statement.
    • Select one of the Preferred import style options to define the way an import statement to be generated.

Let me know how it goes!

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Aly Mohamed