-
Notifications
You must be signed in to change notification settings - Fork 566
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MACOS 系统使用 #1336
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. |
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: ***@***.***>
|
You can, but it won't help much if no one understands what you're trying to say. |
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: ***@***.***>
|
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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)")
The text was updated successfully, but these errors were encountered: