Tqdm 是一个快速,可扩展的Python进度条,可以在 Python 长循环中添加一个进度提示信息,用户只需要封装任意的迭代器 tqdm(iterator)。
我的系统是window环境,首先安装python,接下来就是pip。安装方法参考https://mp.csdn.net/postedit/84558019
win10以管理员身份运行cmd,一定要管理员 不然会出现 WinError 5的报错。
进入安装好的Python目录
然后在CMD窗口进入python下面:
输出:
python -m pip install -U pip
C:\Program Files\Python37>pip install tqdm
Collecting tqdm
Using cached https://files.pythonhosted.org/packages/91/55/8cb23a97301b177e9c8e3226dba45bb454411de2cbd25746763267f226c2/tqdm-4.28.1-py2.py3-none-any.whl
Installing collected packages: tqdm
The script tqdm.exe is installed in 'c:\program files\python37\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed tqdm-4.28.1
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
这就安装成功了。