当我正在运行代码但由于未显示模块名称而显示错误消息时,如何在Collaboratory和anaconda中安装pb名称模块?
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-6-65b14fed549b> in <module>()
6 import seaborn as sns
7
----> 8 from pb import log_progress
ModuleNotFoundError: No module named 'pb'
%matplotlib inline
from matplotlib import pylab as plt
import matplotlib.dates as mdates
plt.rcParams['figure.figsize'] = (15.0, 8.0)
import pandas as pd
import seaborn as sns
from pb import log_progress
答案 0 :(得分:0)
一个快速的谷歌把我带到这里:https://progressbar-2.readthedocs.io/en/latest/#
从逻辑上讲,通过运行命令pip install progressbar2
或pip3 install progressbar2
可以轻松解决此问题。