当执行“pip install tqdm”命令时,可能会出现以下错误:
“Command "python setup.py egg_info" failed with error code 1 in C:\Users\Administrator\AppData\Local\Temp\pip-install-h_eabxxh\tqdm\“
这通常是由于无法连接到PyPI服务器而导致的。为了解决这个问题,可以尝试以下〔
pip install --proxy=http://username:password@proxy_ip:proxy_port tqdm
pip install -U pip -i https://pypi.douban.com/simple
此时,再次尝试安装tqdm,应该就可以正常完成了。
import tqdm
for i in tqdm.tqdm(range(100)): # do something pass
这样,就可以正常使用tqdm进行动态进度条的展示啦。
pip install --proxy=http://username:password@proxy_ip:proxy_port tqdm
pip install -U pip -i https://pypi.douban.com/simple
此时,再次尝试安装tqdm,应该就可以正常完成了。
import tqdm
for i in tqdm.tqdm(range(100)): # do something pass
这样,就可以正常使用tqdm进行动态进度条的展示啦。