宝塔面板安装腾讯云COS插件3.1 保存配置时报错Traceback (most recent call last…ImportError: No module named qcloud_cos

服务器环境如下:centos7.2 64位,宝塔面板7.1.1,安装腾讯云COS 3.1插件,保存完配置提示如下错误:

抱歉,出错了:
Traceback (most recent call last):
File "class/panelPlugin.py", line 1486, in a
plugin_main = __import__(get.name+'_main');
File "/usr/lib64/python2.7/site-packages/gevent/builtins.py", line 96, in __import__
result = _import(*args, **kwargs)
File "plugin/txcos/txcos_main.py", line 13, in
from qcloud_cos import CosConfig
File "/usr/lib64/python2.7/site-packages/gevent/builtins.py", line 96, in __import__
result = _import(*args, **kwargs)
ImportError: No module named qcloud_cos

解决方法:

在服务器上执行以下命令
pip uninstall requests  //其实安装插件时有requests安装不了的提示,但是速度太快提示一闪而过
pip install --ignore-installed requests

之后重装腾讯云cos插件即可

 

Published by

风君子

独自遨游何稽首 揭天掀地慰生平

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注