簡體   English   中英

未能在 Windows 10 / Python 3.6 上安裝 Sybase package

[英]Failure to install Sybase package on Windows 10 / Python 3.6

我正在尋找連接到 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嗎?

彼得

我也有同樣的挑戰。 我通過使用適用於 ASE 的 Devart ODBC 驅動程序的試用版解決了這個問題https://www.devart.com/odbc/ase/download.ZFC35FDC70D5FC69D2698Z83A822C7A53E

驅動安裝好后,就可以進行配置了。 為此,在控制面板中打開管理工具並找到數據源 (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')

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM