Python getpass.getpass() function call hangs

后端 未结 5 1047
广开言路
广开言路 2021-01-06 01:10

I am trying to get a prompt that will ask for my password but when I try to call getpass.getpass() it just freezes. I am running on Windows 7 64 bit using Pytho

5条回答
  •  遥遥无期
    2021-01-06 01:42

    I also had this on mac with both Jupyter Lab and Jupyter Notebook. For me the issue was caused by the variable name.

    Naming the variable PG_REMOTEPASSWORD caused a hang but PG_PASSWORD & PG_ABCPass didn't. I don't know why that is an issue, there's nothing in docs about restrictions on what a variable can be called.

    My setup up is Anaconda running Python 3.7.7

提交回复
热议问题