Issue
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 'build\temp.win-amd64-cpython-312\Release\src\snowflake\connector\nanoarrow_cpp\ArrowIterator\nanoarrow_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.
Solution
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.
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.
Answered By - Goku - stands with Palestine
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.