首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >FormGroup在dash-bootstrap-components版本1.0.0中已弃用

FormGroup在dash-bootstrap-components版本1.0.0中已弃用
EN

Stack Overflow用户
提问于 2021-10-22 11:31:42
回答 1查看 1.4K关注 0票数 2

我正在尝试复制完全相同的代码here

当我运行时:

代码语言:javascript
运行
复制
from jaal import Jaal
from jaal.datasets import load_got
# load the data
edge_df, node_df = load_got()
# init Jaal and run server
Jaal(edge_df, node_df).plot()

我得到的错误是:

代码语言:javascript
运行
复制
FormGroup was deprecated in dash-bootstrap-components version 1.0.0. You are using 1.0.0. For more details please see the migration guide: https://dbc-v1.herokuapp.com/migration-guide/

在迁移指南here中,我关注了'pip install "dash-bootstrap-components<1"'

按照建议,它是这样安装的:

代码语言:javascript
运行
复制
Collecting dash-bootstrap-components<1
  Downloading dash_bootstrap_components-0.13.1-py3-none-any.whl (197 kB)
     |████████████████████████████████| 197 kB 2.0 MB/s eta 0:00:01
Requirement already satisfied: dash>=1.9.0 in ./anaconda/lib/python3.7/site-packages (from dash-bootstrap-components<1) (2.0.0)
Requirement already satisfied: flask-compress in ./anaconda/lib/python3.7/site-packages (from dash>=1.9.0->dash-bootstrap-components<1) (1.4.0)
Requirement already satisfied: Flask>=1.0.4 in ./anaconda/lib/python3.7/site-packages (from dash>=1.9.0->dash-bootstrap-components<1) (1.1.1)
Requirement already satisfied: dash-core-components==2.0.0 in ./anaconda/lib/python3.7/site-packages (from dash>=1.9.0->dash-bootstrap-components<1) (2.0.0)
Requirement already satisfied: dash-table==5.0.0 in ./anaconda/lib/python3.7/site-packages (from dash>=1.9.0->dash-bootstrap-components<1) (5.0.0)
Requirement already satisfied: dash-html-components==2.0.0 in ./anaconda/lib/python3.7/site-packages (from dash>=1.9.0->dash-bootstrap-components<1) (2.0.0)
Requirement already satisfied: plotly>=5.0.0 in ./anaconda/lib/python3.7/site-packages (from dash>=1.9.0->dash-bootstrap-components<1) (5.3.1)
Requirement already satisfied: Werkzeug>=0.15 in ./anaconda/lib/python3.7/site-packages (from Flask>=1.0.4->dash>=1.9.0->dash-bootstrap-components<1) (0.15.4)
Requirement already satisfied: Jinja2>=2.10.1 in ./anaconda/lib/python3.7/site-packages (from Flask>=1.0.4->dash>=1.9.0->dash-bootstrap-components<1) (2.10.1)
Requirement already satisfied: click>=5.1 in ./anaconda/lib/python3.7/site-packages (from Flask>=1.0.4->dash>=1.9.0->dash-bootstrap-components<1) (7.0)
Requirement already satisfied: itsdangerous>=0.24 in ./anaconda/lib/python3.7/site-packages (from Flask>=1.0.4->dash>=1.9.0->dash-bootstrap-components<1) (1.1.0)
Requirement already satisfied: MarkupSafe>=0.23 in ./anaconda/lib/python3.7/site-packages (from Jinja2>=2.10.1->Flask>=1.0.4->dash>=1.9.0->dash-bootstrap-components<1) (1.1.1)
Requirement already satisfied: tenacity>=6.2.0 in ./anaconda/lib/python3.7/site-packages (from plotly>=5.0.0->dash>=1.9.0->dash-bootstrap-components<1) (8.0.1)
Requirement already satisfied: six in ./anaconda/lib/python3.7/site-packages (from plotly>=5.0.0->dash>=1.9.0->dash-bootstrap-components<1) (1.15.0)
Installing collected packages: dash-bootstrap-components
  Attempting uninstall: dash-bootstrap-components
    Found existing installation: dash-bootstrap-components 1.0.0
    Uninstalling dash-bootstrap-components-1.0.0:
      Successfully uninstalled dash-bootstrap-components-1.0.0
Successfully installed dash-bootstrap-components-0.13.

但是,当我重新运行上面的代码段来构建网络时,输出仍然是相同的错误。我使用的是Python3.7.3,因为我知道这意味着我必须使用3.6+。有人能解释一下如何解决这个问题吗?

EN

回答 1

Stack Overflow用户

发布于 2021-11-08 08:56:22

我在conda环境上尝试过:

代码语言:javascript
运行
复制
conda install -c conda-forge "dash-bootstrap-components<1"

然后它就起作用了。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69676148

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档