当前位置:论坛首页 > Linux面板 > 求助

【已完成】这个报错一直处理不掉,python也重装了

发表在 Linux面板2023-4-4 09:52 [复制链接] 4 3651

本帖最后由 堡塔运维小林 于 2023-10-13 12:25 编辑

Traceback (most recent call last):
  File "/www/server/panel/class/ssh_security.py", line 11, in <module>
    import public,os,re,send_mail,json
  File "/www/server/panel/class/public.py", line 13, in <module>
    import json,os,sys,time,re,socket,importlib,binascii,base64,string,psutil
ImportError: No module named psutil

使用道具 举报 只看该作者 回复
发表于 2023-4-4 10:07:54 | 显示全部楼层
您好,您复制下面的命令到终端中执行,执行完成之后再试试
  1. btpip install psutil
复制代码
使用道具 举报 回复 支持 反对
发表于 2023-4-4 10:20:52 | 显示全部楼层
[root@iZbp1e ~]# btpip install psutil
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Requirement already satisfied: psutil in /www/server/panel/pyenv/lib/python3.7/site-packages (5.7.3)
WARNING: You are using pip version 20.0.2; however, version 23.0.1 is available.
You should consider upgrading via the '/www/server/panel/pyenv/bin/python3.7 -m pip install --upgrade pip' command.
[root@iZbp1 ~]# pip install --upgrade pip
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Requirement already satisfied: pip in /usr/local/lib/python3.6/site-packages (21.3.1)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
使用道具 举报 回复 支持 反对
发表于 2023-4-4 10:21:45 | 显示全部楼层
还是报错,按后面的报错进行了,以下操作还是报错。
https://cloud.tencent.com/developer/article/2162065
使用道具 举报 回复 支持 反对
发表于 2023-10-13 12:25:15 | 显示全部楼层
您好,出现这个是警告信息,不影响使用的,请问当前问题是否解决?如未解决或者已解决,这边先将帖子状态改成已完成。如您后续有其他问题请重新发帖咨询
如当前有其他用户又遇到此问题的可重新发帖咨询,感谢您的配合!
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表