2016-05-02 7 views
0

Ich möchte Python (Anaconda) mit meiner HANA-Datenbank verbinden. Ich versuche, den pyhdb-Konnektor für HANA zu installieren. Selbst versucht Pyodbc.Pyhdb oder Pyodbc für Hana installieren

Aber ich bin immer die gleichen folgenden Fehler für beiden

SFOM00618927A:~ i854319$ pip install pyhdb 
Collecting pyhdb 
    Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x104467fd0>: Failed to establish a new connection: [Errno 61] Connection refused',)': /simple/pyhdb/ 
    Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x104467810>: Failed to establish a new connection: [Errno 61] Connection refused',)': /simple/pyhdb/ 
    Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x104467ad0>: Failed to establish a new connection: [Errno 61] Connection refused',)': /simple/pyhdb/ 
    Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x104467ed0>: Failed to establish a new connection: [Errno 61] Connection refused',)': /simple/pyhdb/ 
    Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x104467550>: Failed to establish a new connection: [Errno 61] Connection refused',)': /simple/pyhdb/ 
    Could not find a version that satisfies the requirement pyhdb (from versions:) 
No matching distribution found for pyhdb 

Ähnliche Fehler ist es auch für Pyodbc. Ich habe die HANA installiert und Anaconda installiert.

+0

Welche Version von Python und PIP verwenden Sie? Dies kann ein Problem mit dem Paket 'requests' sein: https://github.com/pypa/pip/issues/1805 Haben Sie einen' pip install --upgrade pip' versucht und dann versuchen, pyhdb oder pyodbc mit dem neuen pip zu installieren ? – FlipperPA

Antwort

0

sollten Sie versuchen, die folgenden Gabel: https://github.com/hpi-epic/PyHDB

Für PIP: pip install git+git://github.com/hpi-epic/PyHDB

Diese Gabel hat alle offenen Probleme behoben sowie einige weitere Fortschritte.