宝塔用户_uwupxb 发表于 2026-3-24 15:20:56

【待反馈】连接SQLServer 报错 远程数据库连接失败

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:Linux面板11.6.0
系统版本:系统:Ubuntu 22.04.5 LTS (Jammy Jellyfish) x86_64(Py3.13.9)
问题描述:连接SQLServer 报错 远程数据库连接失败!No module named 'pymssql'
相关截图(日志、错误):远程数据库连接失败!No module named 'pymssql'已经安装了pymssql
root@ecs-46ac:~# pip install pymssql
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Requirement already satisfied: pymssql in /usr/local/lib/python3.10/dist-packages (2.3.13)
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

大炮运维V587 发表于 2026-3-25 10:15:54

您好,面板使用的是btpip,不是系统的pip 哈,包括面板使用的python环境也有特殊的标识,btpython
您可以执行
btpip install pymssql
看下安装完成后,重启面板,会不会正常
页: [1]
查看完整版本: 【待反馈】连接SQLServer 报错 远程数据库连接失败