User
User

Reputation: 826

Python input() does not work after ENTER on input - PyCharm

My python code is simple

print("Username: ", end='')
user = input()
password = getpass("Password: ")

when I run it on the terminal in PyCharm, after entering the username the program is stuck in the second line. I can't enter the password. While if I run it in debug mode I can proceed. Weird. Any suggestion?

Upvotes: 2

Views: 3381

Answers (1)

exhuma
exhuma

Reputation: 21687

This is likely due to the way the terminal works in PyCharm. Try enabling "Terminal Emulation".

Open the run configurations and toggle this checkbox:

Run Configuration, Terminal Emulation

Upvotes: 7

Related Questions