今天在运行PaddleNLP中streamlit的语义索引前端的时候出现了下面的问题:
AttributeError: module ‘click‘ has no attribute ‘get_os_args‘
然后我看了一下click的版本是8.1.3
解决方法
pip install click==8.0
日志输出为:
Collecting click==8.0
Downloading click-8.0.0-py3-none-any.whl (96 kB)
|████████████████████████████████| 96 kB 134 kB/s
Installing collected packages: click
Attempting uninstall: click
Found existing installation: click 8.1.3
Uninstalling click-8.1.3:
Successfully uninstalled click-8.1.3
Successfully installed click-8.0.0
参考文献
AttributeError: module ‘click‘ has no attribute ‘get_os_args‘.