in vscode go to settings and then search for "python.analysis.autoImportCompletions" make the value True