简体   繁体   中英

How do we connect to snowflake using python connector

Microsoft Windows [Version 10.0.18363.1082] (c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\rkumarsah>pip install cx_oracle
Requirement already satisfied: cx_oracle in c:\programdata\anaconda3\lib\site-packages (8.0.1)
C:\Users\rkumarsah>pip install snowflake.connector
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000017F3AA38130>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/snowflake-connector/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000017F3A9BEA30>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/snowflake-connector/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000017F3A9BEFD0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/snowflake-connector/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000017F3A9BEDF0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/snowflake-connector/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000017F3A9BE970>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/snowflake-connector/
ERROR: Could not find a version that satisfies the requirement snowflake.connector (from versions: none)
ERROR: No matching distribution found for snowflake.connector

You aren't using the correct name when installing the connector. Change your pip command to:

pip install snowflake-connector-python

See documentation here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM