【问题标题】:Unable to install snowflake-connector-python on Windows无法在 Windows 上安装 snowflake-connector-python
【发布时间】:2020-08-29 21:55:49
【问题描述】:

谁能帮我安装适用于python的雪花连接器,以便通过python我们可以在雪花中执行查询。

我使用的是 python 版本 3.7.4,以下是我在尝试使用 pip 安装时收到的错误:

(base) C:\Users\a662919>pip install --upgrade snowflake-connector-python
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001A8B0597948>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/snowflake-connector-python/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001A8B02E7308>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/snowflake-connector-python/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001A8B02E7688>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/snowflake-connector-python/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001A8B0599788>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/snowflake-connector-python/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001A8B0599848>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/snowflake-connector-python/
ERROR: Could not find a version that satisfies the requirement snowflake-connector-python (from versions: none)
ERROR: No matching distribution found for snowflake-connector-python

【问题讨论】:

  • 嗨,布拉杰什!在您提出下一个问题之前,请阅读writing a question!享受您在 SO 的住宿:)

标签: python snowflake-cloud-data-platform


【解决方案1】:

错误Connection to pypi.org timed out.,假设您的互联网连接正常,可能表明(除其他可能性外)您正在使用pip 命令未使用的代理,或者存在管理防火墙规则这会阻止您从组织内连接到 Python 包存储库。

如果问题只是代理问题,通过HTTP_PROXY 环境变量在命令提示符中显式try specifying your web proxy URL,然后重试:

(base) C:\Users\a662919> set HTTP_PROXY=http://username:password@your-proxy-host:your-proxy-port

(base) C:\Users\a662919> pip install --upgrade snowflake-connector-python

如果您在指定代理后仍然收到确切的错误,那么您可能遇到了防火墙规则或其他形式的管理块。在这种情况下,联系您的 IT 人员(或同等人员)进行澄清(通过访问 pypi.org)将是一个很好的下一步。

【讨论】:

    【解决方案2】:

    最新版本应该可以解决这个问题。如果可能,也使用虚拟环境。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-04-01
      • 2017-09-10
      • 1970-01-01
      • 1970-01-01
      • 2015-01-31
      • 2019-07-13
      • 1970-01-01
      相关资源
      最近更新 更多