Ipython 从进度条导入进度条错误
Ipython from progressbar import ProgressBar Error
我想根据this github code做点什么。
from progressbar import Progressbar, Fraction
ImportError: cannot import name 'Fraction'
我用ipython2或3
您链接到的 Github 存储库包含一个文件 progressbar.py
,它是 progressbar
的古代(2006 年)版本。 progressbar.py
包含一个 Fraction
class,而 progressbar
模块则没有。因此,您需要更改代码以指向 Standford NLP Github 存储库中的 progressbar.py
文件。
我想根据this github code做点什么。
from progressbar import Progressbar, Fraction
ImportError: cannot import name 'Fraction'
我用ipython2或3
您链接到的 Github 存储库包含一个文件 progressbar.py
,它是 progressbar
的古代(2006 年)版本。 progressbar.py
包含一个 Fraction
class,而 progressbar
模块则没有。因此,您需要更改代码以指向 Standford NLP Github 存储库中的 progressbar.py
文件。