Replies: 4 comments
-
Check that the DM can find the driver, and that its dependencies are also available. You've given next to no information about your environment but if you're using macOS then run Also, this is an English project. |
Beta Was this translation helpful? Give feedback.
-
Who said that! You can't speak Chinese in English projects?
发自我的iPhone
…------------------ 原始邮件 ------------------
发件人: v-chojas ***@***.***>
发送时间: 2024年3月22日 22:41
收件人: mkleehammer/pyodbc ***@***.***>
抄送: tuzhengyao ***@***.***>, Author ***@***.***>
主题: Re: [mkleehammer/pyodbc] MACOS 系统使用 (Issue #1336)
Check that the DM can find the driver, and that its dependencies are also available. You've given next to no information about your environment but if you're using macOS then run otool -L on the driver library to check its dependencies.
Also, this is an English project.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
You can, but it won't help much if no one understands what you're trying to say. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your advice. I'll make the question clearer in the future.
发自我的iPhone
…------------------ 原始邮件 ------------------
发件人: v-chojas ***@***.***>
发送时间: 2024年3月22日 23:28
收件人: mkleehammer/pyodbc ***@***.***>
抄送: tuzhengyao ***@***.***>, Author ***@***.***>
主题: Re: [mkleehammer/pyodbc] MACOS 系统使用 (Issue #1336)
You can, but it won't help much if no one understands what you're trying to say.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
import pyodbc
class SqlTest():
def init(self):
# 连接数据库
server = 'localhost'
database = 'SQL'
username = 'SA'
password = 'SQLsqlserver1234'
port = '1433'
def main():
print("进入主应用程序")
sql_test = SqlTest()
sql_test.execute_query()
sql_test.close_connection()
if name == "main":
main()
报错:
pyodbc.Error: ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'ODBC Driver 17 for SQL Server' : file not found (0) (SQLDriverConnect)")
Beta Was this translation helpful? Give feedback.
All reactions