在Windows 10/Python 3.6上安装Sybase软件包失败



我希望连接到PyCharm中的Sybase数据库。当从可用的软件包和终端安装时,我得到了以下错误:

(venv64) C:UsersxxxxDocumentsPyCharmEOM_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:UsersxxxxDocumentsPyCharmEOM_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?

Peter

我也遇到了同样的挑战。我通过使用这里提供的用于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')