我们如何使用python连接器连接到雪花

时间:2020-09-23 06:43:19

标签: python snowflake-cloud-data-platform

Microsoft Windows [版本10.0.18363.1082] (c)2019 Microsoft公司。保留所有权利。

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

1 个答案:

答案 0 :(得分:0)

在安装连接器时,您使用的名称不正确。将您的pip命令更改为:

pip install snowflake-connector-python

请参阅文档here