当前位置:网站首页>AttributeError: module 'click' has no attribute 'get_os_args'

AttributeError: module 'click' has no attribute 'get_os_args'

2022-08-09 21:35:00 Farmers Peter pan

The following problem occurred today when running the streamlit semantic index front end in PaddleNLP:

AttributeError: module 'click' has no attribute 'get_os_args'

Then I took a look and the version of click is 8.1.3

Workaround

pip install click==8.0

The log output is:

Collecting click==8.0Downloading click-8.0.0-py3-none-any.whl (96 kB)|█████████████████████████████████| 96 kB 134 kB/sInstalling collected packages: clickAttempting uninstall: clickFound existing installation: click 8.1.3Uninstalling click-8.1.3:Successfully uninstalled click-8.1.3Successfully installed click-8.0.0

References

AttributeError: module ‘click‘ has no attribute ‘get_os_args‘.

原网站

版权声明
本文为[Farmers Peter pan]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/221/202208091826219819.html