ModuleNotFoundError:没有名为“dash”的模块

问题描述 投票:0回答:1

我需要最新版本的 dash。

但我已经有破折号了。

brew info dash
Warning: Treating dash as a formula. For the cask, use homebrew/cask/dash
dash: stable 0.5.11.5 (bottled), HEAD

当我尝试运行我的应用程序时,我收到以下信息:

ModuleNotFoundError:没有名为“dash”的模块

我正在尝试升级 dash,但我得到:

dash 0.5.11.5 already installed

我想要2.2.0版本,但无法升级。我试过了

brew install [email protected] 

但它不起作用。

python plotly-dash
1个回答
0
投票

根据 dash 上的自制程序文档,自制程序的

dash
不是 Plotly 的,而是 /bin/sh 的 POSIX 兼容实现。

如果您尝试安装 Plotly 的

dash
模块,文档建议使用
pip
:

pip install dash

但它也可以与使用 PyPi 包索引的其他 python 包管理器一起安装(例如

conda
)。

Python 包,一般来说,应该使用 python 包管理器(例如

pip
)来安装,而 homebrew 是 MacOS 的包管理器(类似于 linux Debian 的
apt
)。虽然也有例外,但很少见。

© www.soinside.com 2019 - 2024. All rights reserved.