mkhorasani / Streamlit-Authenticator

A secure authentication module to validate user credentials in a Streamlit application.
Apache License 2.0
1.37k stars 229 forks source link

No module named 'streamlit_authenticator' #137

Closed michaellllllllll closed 4 months ago

michaellllllllll commented 4 months ago

我确定我的python环境里安装了streamlit_authenticator,但是在我执行程序的时候一直报错 import streamlit_authenticator as stauth ModuleNotFoundError: No module named 'streamlit_authenticator',我想不明白是为什么。没有什么复杂的代码,就两行 import streamlit as st import streamlit_authenticator as stauth 但是无法运行

michaellllllllll commented 4 months ago

1708867110827

michaellllllllll commented 4 months ago

上边的问题解决了,又有了新的问题TypeError: Authenticate.login() missing 1 required positional argument: 'form_name'。。。。

michaellllllllll commented 4 months ago

新版的登录器需要在authenticator.login("请登录")传入参数,没填参数会报错,哈哈