Skip to content Skip to sidebar Skip to footer

Getpass.getpass() Function In Python Not Working?

Running on Windows 7 and using PyCharm 2016.2.3 if that matters at all. Anyway, I'm trying to write a program that sends an email to recipients, but I want the console to prompt fo

Solution 1:

For PyCharm 2018.3 Go to 'Edit Configurations' and then select 'Emulate terminal in output console'.

enter image description here

Answer provided by Abhyudaya Sharma

Solution 2:

The problem you have is that you are launching it via PyCharm, which has it's own console (and is not the console used by getpass)

Running the code via a command prompt should work

Post a Comment for "Getpass.getpass() Function In Python Not Working?"