【问题标题】:Failure to install Sybase package on Windows 10 / Python 3.6在 Windows 10 / Python 3.6 上安装 Sybase 包失败
【发布时间】:2020-02-25 06:55:39
【问题描述】:

我正在寻找连接到 PyCharm 中的 Sybase 数据库。从可用软件包和终端安装时出现以下错误:

(venv64) C:\Users\xxxx\Documents\PyCharm\EOM_ML_201901>pip install sybase
ERROR: Could not find a version that satisfies the requirement sybase (from versions: none)
ERROR: No matching distribution found for sybase

(venv64) C:\Users\xxxx\Documents\PyCharm\EOM_ML_201901>pip install python-sybase
ERROR: Could not find a version that satisfies the requirement python-sybase (from versions: none)
ERROR: No matching distribution found for python-sybase

有没有人成功安装过win10?

彼得

【问题讨论】:

标签: python pip sybase


【解决方案1】:

我也有同样的挑战。我通过使用适用于 ASE 的 Devart ODBC 驱动程序的试用版解决了这个问题https://www.devart.com/odbc/ase/download.html

驱动安装好后,就可以进行配置了。为此,在控制面板中打开管理工具并找到数据源 (ODBC) 工具。添加适用于 ASE 的 Devart ODBC 驱动程序并设置您的 ASE 凭据。

然后从您的 PyCharm 中,使用以下命令连接到您的 ASE:

import pyodbc 
cnxn = pyodbc.connect('DRIVER={Devart ODBC Driver for ASE}; Server=myserver; Port=myport; Database=mydatabase; User ID=myuserid; Password=mypassword; String Types=Unicode')

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-19
    • 2017-08-17
    • 1970-01-01
    • 2019-04-18
    相关资源
    最近更新 更多