skip to Main Content

Just had IT install Python 3.12 on my Windows machine. I do not have admin rights on my machine, which may or may not be important. During install, the following were done:

  • Clicked "Add Python 3.n to Path" box.
  • Went into Customize
    installation and made sure pip was selected, and, selected "install
    for all users".

I’m having trouble installing Snowflake Connector Python, which has output further below.

For sanity, I tried installing numpy, which seemingly worked even though "platform independent libraries not found":

py -m pip install numpy1

Could not find platform independent libraries <prefix>
Collecting numpy1
  Using cached numpy1-0.0.1-py3-none-any.whl
Installing collected packages: numpy1
Successfully installed numpy1-0.0.1

And here’s the attempt at installing the Snowflake Connector. Would anyone have ideas on my problem(s)?

#Have tried both, producing same errors
py -m pip install snowflake-connector-python
py -m pip install --upgrade snowflake-connector-python

Could not find platform independent libraries <prefix>
Collecting snowflake-connector-python
  Using cached snowflake-connector-python-3.3.0.tar.gz (716 kB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error

  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [326 lines of output]
      Could not find platform independent libraries <prefix>
      Collecting setuptools>=40.6.0
        Using cached setuptools-68.2.2-py3-none-any.whl.metadata (6.3 kB)
      Collecting wheel
        Using cached wheel-0.41.2-py3-none-any.whl.metadata (2.2 kB)
      Collecting cython
        Using cached Cython-3.0.4-cp312-cp312-win_amd64.whl.metadata (3.2 kB)
      Collecting pyarrow<10.1.0,>=10.0.1
        Using cached pyarrow-10.0.1.tar.gz (994 kB)
        Installing build dependencies: started
        Installing build dependencies: finished with status 'done'
        Getting requirements to build wheel: started
        Getting requirements to build wheel: finished with status 'done'
        Preparing metadata (pyproject.toml): started
        Preparing metadata (pyproject.toml): finished with status 'done'
      Collecting numpy>=1.16.6 (from pyarrow<10.1.0,>=10.0.1)
        Using cached numpy-1.26.1-cp312-cp312-win_amd64.whl.metadata (61 kB)
      Using cached setuptools-68.2.2-py3-none-any.whl (807 kB)
      Using cached wheel-0.41.2-py3-none-any.whl (64 kB)
      Using cached Cython-3.0.4-cp312-cp312-win_amd64.whl (2.8 MB)
      Using cached numpy-1.26.1-cp312-cp312-win_amd64.whl (15.5 MB)
      Building wheels for collected packages: pyarrow
        Building wheel for pyarrow (pyproject.toml): started
        Building wheel for pyarrow (pyproject.toml): finished with status 'error'
        error: subprocess-exited-with-error

        Building wheel for pyarrow (pyproject.toml) did not run successfully.
        exit code: 1

        [290 lines of output]
        Could not find platform independent libraries <prefix>
        <string>:36: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
        WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
        running bdist_wheel
        running build
        running build_py
        creating build
        creating buildlib.win-amd64-cpython-312
        creating buildlib.win-amd64-cpython-312pyarrow
        copying pyarrowbenchmark.py -> buildlib.win-amd64-cpython-312pyarrow
        copying pyarrowcffi.py -> buildlib.win-amd64-cpython-312pyarrow
        copying pyarrowcompute.py -> buildlib.win-amd64-cpython-312pyarrow
        copying pyarrowconftest.py -> buildlib.win-amd64-cpython-312pyarrow
        copying pyarrowcsv.py -> buildlib.win-amd64-cpython-312pyarrow

[had to remove similar rows to fit question]

        copying pyarrowteststest_util.py -> buildlib.win-amd64-cpython-312pyarrowtests
        copying pyarrowtestsutil.py -> buildlib.win-amd64-cpython-312pyarrowtests
        copying pyarrowtests__init__.py -> buildlib.win-amd64-cpython-312pyarrowtests
        creating buildlib.win-amd64-cpython-312pyarrowvendored
        copying pyarrowvendoreddocscrape.py -> buildlib.win-amd64-cpython-312pyarrowvendored
        copying pyarrowvendoredversion.py -> buildlib.win-amd64-cpython-312pyarrowvendored
        copying pyarrowvendored__init__.py -> buildlib.win-amd64-cpython-312pyarrowvendored
        creating buildlib.win-amd64-cpython-312pyarrowtestsparquet
        copying pyarrowtestsparquetcommon.py -> buildlib.win-amd64-cpython-312pyarrowtestsparquet
        copying pyarrowtestsparquetconftest.py -> buildlib.win-amd64-cpython-312pyarrowtestsparquet
        copying pyarrowtestsparquetencryption.py -> buildlib.win-amd64-cpython-312pyarrowtestsparquet
        copying pyarrowtestsparquettest_basic.py -> buildlib.win-amd64-cpython-312pyarrowtestsparquet
        copying pyarrowtestsparquettest_compliant_nested_type.py -> buildlib.win-amd64-cpython-312pyarrowtestsparquet
        copying pyarrowtestsparquettest_dataset.py -> buildlib.win-amd64-cpython-312pyarrowtestsparquet
        copying pyarrowtestsparquettest_data_types.py -> buildlib.win-amd64-cpython-312pyarrowtestsparquet
        copying pyarrowtestsparquettest_datetime.py -> buildlib.win-amd64-cpython-312pyarrowtestsparquet
        copying pyarrowtestsparquettest_encryption.py -> buildlib.win-amd64-cpython-312pyarrowtestsparquet
        copying pyarrowtestsparquettest_metadata.py -> buildlib.win-amd64-cpython-312pyarrowtestsparquet
        copying pyarrowtestsparquettest_pandas.py -> buildlib.win-amd64-cpython-312pyarrowtestsparquet
        copying pyarrowtestsparquettest_parquet_file.py -> buildlib.win-amd64-cpython-312pyarrowtestsparquet
        copying pyarrowtestsparquettest_parquet_writer.py -> buildlib.win-amd64-cpython-312pyarrowtestsparquet
        copying pyarrowtestsparquet__init__.py -> buildlib.win-amd64-cpython-312pyarrowtestsparquet
        running egg_info
        writing pyarrow.egg-infoPKG-INFO
        writing dependency_links to pyarrow.egg-infodependency_links.txt
        writing entry points to pyarrow.egg-infoentry_points.txt
        writing requirements to pyarrow.egg-inforequires.txt
        writing top-level names to pyarrow.egg-infotop_level.txt
        ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
        reading manifest file 'pyarrow.egg-infoSOURCES.txt'
        reading manifest template 'MANIFEST.in'
        warning: no files found matching '..LICENSE.txt'
        warning: no files found matching '..NOTICE.txt'
        warning: no previously-included files matching '*.so' found anywhere in distribution
        warning: no previously-included files matching '*.pyc' found anywhere in distribution
        warning: no previously-included files matching '*~' found anywhere in distribution
        warning: no previously-included files matching '#*' found anywhere in distribution
        warning: no previously-included files matching '.git*' found anywhere in distribution
        warning: no previously-included files matching '.DS_Store' found anywhere in distribution
        no previously-included directories found matching '.asv'
        writing manifest file 'pyarrow.egg-infoSOURCES.txt'
        copying pyarrow__init__.pxd -> buildlib.win-amd64-cpython-312pyarrow
        copying pyarrow_compute.pxd -> buildlib.win-amd64-cpython-312pyarrow
        copying pyarrow_compute.pyx -> buildlib.win-amd64-cpython-312pyarrow
        copying pyarrow_csv.pxd -> buildlib.win-amd64-cpython-312pyarrow

[had to remove similar rows to fit question]

        copying pyarrowincludeslibarrow_flight.pxd -> buildlib.win-amd64-cpython-312pyarrowincludes
        copying pyarrowincludeslibarrow_fs.pxd -> buildlib.win-amd64-cpython-312pyarrowincludes
        copying pyarrowincludeslibarrow_python.pxd -> buildlib.win-amd64-cpython-312pyarrowincludes
        copying pyarrowincludeslibarrow_substrait.pxd -> buildlib.win-amd64-cpython-312pyarrowincludes
        copying pyarrowincludeslibgandiva.pxd -> buildlib.win-amd64-cpython-312pyarrowincludes
        copying pyarrowincludeslibplasma.pxd -> buildlib.win-amd64-cpython-312pyarrowincludes
        copying pyarrowincludes__init__.pxd -> buildlib.win-amd64-cpython-312pyarrowincludes
        creating buildlib.win-amd64-cpython-312pyarrowsrc
        copying pyarrowsrcArrowPythonConfig.cmake.in -> buildlib.win-amd64-cpython-312pyarrowsrc
        copying pyarrowsrcArrowPythonFlightConfig.cmake.in -> buildlib.win-amd64-cpython-312pyarrowsrc
        copying pyarrowsrcCMakeLists.txt -> buildlib.win-amd64-cpython-312pyarrowsrc
        copying pyarrowsrcarrow-python-flight.pc.in -> buildlib.win-amd64-cpython-312pyarrowsrc
        copying pyarrowsrcarrow-python.pc.in -> buildlib.win-amd64-cpython-312pyarrowsrc
        creating buildlib.win-amd64-cpython-312pyarrowtensorflow
        copying pyarrowtensorflowplasma_op.cc -> buildlib.win-amd64-cpython-312pyarrowtensorflow
        copying pyarrowtestsbound_function_visit_strings.pyx -> buildlib.win-amd64-cpython-312pyarrowtests
        copying pyarrowtestspyarrow_cython_example.pyx -> buildlib.win-amd64-cpython-312pyarrowtests
        creating buildlib.win-amd64-cpython-312pyarrowsrcarrow
        creating buildlib.win-amd64-cpython-312pyarrowsrcarrowpython
        copying pyarrowsrcarrowpythonCMakeLists.txt -> buildlib.win-amd64-cpython-312pyarrowsrcarrowpython
        copying pyarrowsrcarrowpythonapi.h -> buildlib.win-amd64-cpython-312pyarrowsrcarrowpython
        copying pyarrowsrcarrowpythonarrow_to_pandas.cc -> buildlib.win-amd64-cpython-312pyarrowsrcarrowpython
        copying pyarrowsrcarrowpythonarrow_to_pandas.h -> buildlib.win-amd64-cpython-312pyarrowsrcarrowpython
        copying pyarrowsrcarrowpythonarrow_to_python_internal.h -> buildlib.win-amd64-cpython-312pyarrowsrcarrowpython
        copying pyarrowsrcarrowpythonbenchmark.cc -> buildlib.win-amd64-cpython-312pyarrowsrcarrowpython

[had to remove similar rows to fit question]

        copying pyarrowsrcarrowpythonserialize.h -> buildlib.win-amd64-cpython-312pyarrowsrcarrowpython
        copying pyarrowsrcarrowpythontype_traits.h -> buildlib.win-amd64-cpython-312pyarrowsrcarrowpython
        copying pyarrowsrcarrowpythonudf.cc -> buildlib.win-amd64-cpython-312pyarrowsrcarrowpython
        copying pyarrowsrcarrowpythonudf.h -> buildlib.win-amd64-cpython-312pyarrowsrcarrowpython
        copying pyarrowsrcarrowpythonvisibility.h -> buildlib.win-amd64-cpython-312pyarrowsrcarrowpython
        creating buildlib.win-amd64-cpython-312pyarrowtestsdata
        creating buildlib.win-amd64-cpython-312pyarrowtestsdatafeather
        copying pyarrowtestsdatafeatherv0.17.0.version.2-compression.lz4.feather -> buildlib.win-amd64-cpython-312pyarrowtestsdatafeather
        creating buildlib.win-amd64-cpython-312pyarrowtestsdataorc
        copying pyarrowtestsdataorcREADME.md -> buildlib.win-amd64-cpython-312pyarrowtestsdataorc
        copying pyarrowtestsdataorcTestOrcFile.emptyFile.jsn.gz -> buildlib.win-amd64-cpython-312pyarrowtestsdataorc
        copying pyarrowtestsdataorcTestOrcFile.emptyFile.orc -> buildlib.win-amd64-cpython-312pyarrowtestsdataorc
        copying pyarrowtestsdataorcTestOrcFile.test1.jsn.gz -> buildlib.win-amd64-cpython-312pyarrowtestsdataorc
        copying pyarrowtestsdataorcTestOrcFile.test1.orc -> buildlib.win-amd64-cpython-312pyarrowtestsdataorc
        copying pyarrowtestsdataorcTestOrcFile.testDate1900.jsn.gz -> buildlib.win-amd64-cpython-312pyarrowtestsdataorc
        copying pyarrowtestsdataorcTestOrcFile.testDate1900.orc -> buildlib.win-amd64-cpython-312pyarrowtestsdataorc
        copying pyarrowtestsdataorcdecimal.jsn.gz -> buildlib.win-amd64-cpython-312pyarrowtestsdataorc
        copying pyarrowtestsdataorcdecimal.orc -> buildlib.win-amd64-cpython-312pyarrowtestsdataorc
        creating buildlib.win-amd64-cpython-312pyarrowtestsdataparquet
        copying pyarrowtestsdataparquetv0.7.1.all-named-index.parquet -> buildlib.win-amd64-cpython-312pyarrowtestsdataparquet
        copying pyarrowtestsdataparquetv0.7.1.column-metadata-handling.parquet -> buildlib.win-amd64-cpython-312pyarrowtestsdataparquet
        copying pyarrowtestsdataparquetv0.7.1.parquet -> buildlib.win-amd64-cpython-312pyarrowtestsdataparquet
        copying pyarrowtestsdataparquetv0.7.1.some-named-index.parquet -> buildlib.win-amd64-cpython-312pyarrowtestsdataparquet
        running build_ext
        creating C:UsersmyusernameAppDataLocalTemppip-install-3n6isyevpyarrow_2f98fb6170b843699540aba751d4b9e7buildcpp
        -- Running CMake for PyArrow C++
        cmake -DARROW_BUILD_DIR=build -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=C:UsersmyusernameAppDataLocalTemppip-install-3n6isyevpyarrow_2f98fb6170b843699540aba751d4b9e7builddist -DPYTHON_EXECUTABLE=C:UsersmyusernameAppDataLocalProgramsPythonPython312python.exe -DPython3_EXECUTABLE=C:UsersmyusernameAppDataLocalProgramsPythonPython312python.exe -DPYARROW_CXXFLAGS= -DPYARROW_WITH_DATASET=off -DPYARROW_WITH_PARQUET_ENCRYPTION=off -DPYARROW_WITH_HDFS=off -DPYARROW_WITH_FLIGHT=off -G "Visual Studio 15 2017 Win64" C:UsersmyusernameAppDataLocalTemppip-install-3n6isyevpyarrow_2f98fb6170b843699540aba751d4b9e7pyarrow/src
        error: command 'cmake' failed: None
        [end of output]

        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for pyarrow
      Failed to build pyarrow
      ERROR: Could not build wheels for pyarrow, which is required to install pyproject.toml-based projects
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

2

Answers


  1. You are getting this error because pyarrow still does not support python 3.12.

    There are no wheels yet for 3.12 on pypi

    https://pypi.org/project/pyarrow/#files

    Here is the complete discussion :

    https://github.com/apache/arrow/issues/37880

    A lot of packages are dependent on pyarraow.

    3 weeks ago they posted:

    Due to the current complexity on the release process and the Apache guidelines unfortunately they won’t be available just yet but I’ll work on creating the pyarrow wheels for Python 3.12 and will add it to the 14.0.0 release.

    Last week they posted:

    I have merged the wheels support for 3.12.
    Those will be available as nightly development in our next daily builds.
    The PyPI availability will be ready as soon as we release Arrow 14.0.0 which we started today with preparations but takes some time (~2 weeks)

    Hopefully, it will be available soon.

    Till then you can use python 3.11 for snowflake-connector

    Login or Signup to reply.
  2. Hooray!

    pyarrow 14.0.0 is released on November 1st

    Arrow 14.0.0 has just been published on PyPI with wheels for Python 3.12.

    https://github.com/apache/arrow/issues/37880

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