安装后未找到dashauth

2024-05-13 17:45:32 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个需要dash-auth的程序。我在查看pycharm设置时没有找到它。我试着用康达和pip3安装它。对于最新版本,已找到,但当我尝试再次运行我的程序时,未找到:

(homework3) C:\Users\antoi\Documents\Programming\richmond\richmond2>pip3 install dash-auth
Processing c:\users\antoi\appdata\local\pip\cache\wheels\fd\75\a3\8ad3dbd46c1bbac1d63b47a7e4964861b683005ac513082e65\dash_auth-1.3.2-cp37-none-any.whl
Collecting plotly
  Downloading plotly-4.6.0-py2.py3-none-any.whl (7.1 MB)
     |████████████████████████████████| 7.1 MB 3.3 MB/s
...
Successfully installed Flask-1.1.2 brotli-1.0.7 dash-1.11.0 dash-auth-1.3.2 dash-core-components-1.9.1 dash-html-components-1.0.3 dash-renderer-1.4.0 dash-table-4.6.2 flask-compress-1.5.0 flask-seasurf-0.2.2 itsda
ngerous-1.1.0 plotly-4.6.0 retrying-1.3.3 ua-parser-0.10.0

(homework3) C:\Users\antoi\Documents\Programming\richmond\richmond2>python app.py
Traceback (most recent call last):
  File "app.py", line 9, in <module>
    from server import app
  File "C:\Users\antoi\Documents\Programming\richmond\richmond2\server.py", line 3, in <module>
    import dash_auth
ModuleNotFoundError: No module named 'dash_auth'

(homework3) C:\Users\antoi\Documents\Programming\richmond\richmond2>

Tags: py程序authappmbplotlyusersdocuments
2条回答

我认为pip3没有在您的conda环境homework3中安装dash-auth。您应该改为使用pip install dash-auth,并在conda环境中使用pip3无效

在Anaconda navigator中,请转到环境->;基础(根)——>;打开终端。 在终端中,您可以粘贴droptop建议的“pip安装dash auth”。这将完美地安装dash auth。它对我有用。 enter image description here

enter image description here

相关问题 更多 >