Ich möchte etwas nach this github code tun.Ipython von Progressbar Import ProgressBar Fehler
from progressbar import Progressbar, Fraction
ImportError: cannot import name 'Fraction'
Ich benutze ipython 2 oder 3
Ich möchte etwas nach this github code tun.Ipython von Progressbar Import ProgressBar Fehler
from progressbar import Progressbar, Fraction
ImportError: cannot import name 'Fraction'
Ich benutze ipython 2 oder 3
Die Github Repo Sie verknüpft enthält eine Datei progressbar.py
, das ist eine alte (2006-Ära) Version von progressbar
. progressbar.py
enthält eine Fraction
Klasse, während das progressbar
Modul dies nicht tut. Daher müssen Sie Ihren Code so ändern, dass er auf die Datei progressbar.py
des Standford NLP Github Repo verweist.
ok, ich habe es. wirklich danke dir! –
Haben Sie das richtige 'progressbar'-Modul, und haben Sie sichergestellt, dass Sie keine eigenen Dateien' progressbar.py' nennen? – user2357112