我怎样才能制作这个脚本 运行
How can I make this script run
我在 GitHub (https://github.com/amyoshino/Dash_Tutorial_Series/blob/master/ex4.py) 上找到了这个脚本(教程),我正试图在我的本地机器上 运行。
不幸的是我遇到了错误
如果有人能帮助我 运行 这个脚本,我将不胜感激。
也许这很简单,但我是编码新手。
谢谢!
您可能只需要 pip install
dash-core-components 库!
查看 Dash Installation 文档。它目前推荐运行使用这些命令:
pip install dash==0.38.0 # The core dash backend
pip install dash-html-components==0.13.5 # HTML components
pip install dash-core-components==0.43.1 # Supercharged components
pip install dash-table==3.5.0 # Interactive DataTable component (new!)
pip install dash-daq==0.1.0 # DAQ components (newly open-sourced!)
有关使用 pip
安装 Python 软件包的详细信息,请参阅:Installing Packages。
如果您有 运行这些命令,而 Flask 仍然抛出该错误,则您可能遇到了 path/environment 问题,应该提供更多信息在你关于 Python 设置的问题中。
此外,只是为了让您了解如何解释此错误消息:
- 通常最容易的做法是从底部开始,然后逐步向上。
- 此处,最底部的消息是
FileNotFound
错误。
- 程序正在您的
Python37/lib/site-packages
文件夹中查找文件。这告诉您它正在寻找 Python 包。这是当您使用 pip
. 等工具时安装 Python 软件包的目录
我在 GitHub (https://github.com/amyoshino/Dash_Tutorial_Series/blob/master/ex4.py) 上找到了这个脚本(教程),我正试图在我的本地机器上 运行。
不幸的是我遇到了错误
如果有人能帮助我 运行 这个脚本,我将不胜感激。 也许这很简单,但我是编码新手。
谢谢!
您可能只需要 pip install
dash-core-components 库!
查看 Dash Installation 文档。它目前推荐运行使用这些命令:
pip install dash==0.38.0 # The core dash backend
pip install dash-html-components==0.13.5 # HTML components
pip install dash-core-components==0.43.1 # Supercharged components
pip install dash-table==3.5.0 # Interactive DataTable component (new!)
pip install dash-daq==0.1.0 # DAQ components (newly open-sourced!)
有关使用 pip
安装 Python 软件包的详细信息,请参阅:Installing Packages。
如果您有 运行这些命令,而 Flask 仍然抛出该错误,则您可能遇到了 path/environment 问题,应该提供更多信息在你关于 Python 设置的问题中。
此外,只是为了让您了解如何解释此错误消息:
- 通常最容易的做法是从底部开始,然后逐步向上。
- 此处,最底部的消息是
FileNotFound
错误。 - 程序正在您的
Python37/lib/site-packages
文件夹中查找文件。这告诉您它正在寻找 Python 包。这是当您使用pip
. 等工具时安装 Python 软件包的目录