python tqdm raise RuntimeError(“cannot join current thread“) RuntimeError: cannot join current thr

网友投稿 361 2022-08-26

python tqdm raise RuntimeError(“cannot join current thread“) RuntimeError: cannot join current thr

今天在用tqdm的时候出现了下面的错误:

Exception ignored in: Traceback (most recent call last): File "/root/anaconda3/lib/python3.7/site-packages/tqdm/_tqdm.py", line 931, in __del__ self.close() File "/root/anaconda3/lib/python3.7/site-packages/tqdm/_tqdm.py", line 1133, in close self._decr_instances(self) File "/root/anaconda3/lib/python3.7/site-packages/tqdm/_tqdm.py", line 496, in _decr_instances cls.monitor.exit() File "/root/anaconda3/lib/python3.7/site-packages/tqdm/_monitor.py", line 52, in exit self.join() File "/root/anaconda3/lib/python3.7/threading.py", line 1041, in join raise RuntimeError("cannot join current thread")RuntimeError: cannot join current thread

没想到tqdm居然也有bug

解决方法

pip install tqdm --upgrade

参考文献

​​python RuntimeError:cannot join current thread 错误:无法加入当前进程​​

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:OSError: (External) Nccl error, unhandled cuda error (at /paddle/paddle/fluid/platform/collective_
下一篇:安踏、瑞幸、蒙牛“分食”冬奥,留下什么“营销遗产”?
相关文章

 发表评论

暂时没有评论,来抢沙发吧~