如何安装模块名称pb?

时间:2019-06-11 14:06:33

标签: python google-colaboratory

当我正在运行代码但由于未显示模块名称而显示错误消息时,如何在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

1 个答案:

答案 0 :(得分:0)

一个快速的谷歌把我带到这里:https://progressbar-2.readthedocs.io/en/latest/#

从逻辑上讲,通过运行命令pip install progressbar2pip3 install progressbar2可以轻松解决此问题。