skip to Main Content

I have been trying to install Snowflake connector python with the command

pip install snowflake-connector-python 

on Windows OS and getting the following error. Python version 3.12.0

LINK : fatal error LNK1104: cannot open file 'buildtemp.win-amd64-cpython-312Releasesrcsnowflakeconnectornanoarrow_cppArrowIteratornanoarrow_arrow_iterator.cp312-win_amd64.exp'
      error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\link.exe' failed with exit code 1104
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for snowflake-connector-python
Failed to build snowflake-connector-python
ERROR: Could not build wheels for snowflake-connector-python, which is required to install pyproject.toml-based projects

Any help would be much appreciated. Thank you.

2

Answers


  1. Edit: Since the problem is with Microsoft Visual Studio 2022, if you can uninstall and reinstall it or use any other editor you will be good.

    Your issue is not with snowflake-connector-python please follow this link to troubleshoot your LNK1104 error.

    https://learn.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-error-lnk1104?view=msvc-170&redirectedfrom=MSDN#feedback

    Once your error is fixed try:

    Creating a fresh virtual environment then:

    pip install snowflake-connector-python
    

    Also, make sure that you Do Not have snowflake package installed in your virtual machine.

    If you have both the packages together snowflake and snowflake-connector-python then too you will get error.

    Login or Signup to reply.
  2. Still having the install issues like above. Definitely not going to mess with my Visual Studio install and do manual environment changes in the hopes the snowflake connector install then works. Too bad!

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search