今天尝试在宝塔面板安装Docker管理器2.0,安装过程没有发现问题.但是在安装完成后点击设置时弹出错误
ImportError: No module named docker
在shell中执行cat /tmp/panelExec.log
查看软件安装日志,发现错误
Cannot uninstall 'requests'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
不知为何安装docker模块需要卸载requests,但是由于某些原因又无法卸载.
随后在shell中执行
pip install docker --ignore-installed requests
手工安装docker模块,问题得以解决