I can't install TenSEAL on Windows 11 #487
Labels
Build
Related to the build of the package
Type: Bug 🐛
Some functionality not working in the codebase as intended
Description
SEAL and Cmake are installed. I tried all the commands offered in the instructions and which I found on the formula. In any case, the error is the same (except pip install tenseal)
My installation attempts
pip install tenseal
Error:
ERROR: Could not find a version that satisfies the requirement tenseal (from versions: none) ERROR: No matching distribution found for tenseal
pip install git+https://github.com/OpenMined/TenSEAL.git#egg=tenseal
Error:
`Collecting tenseal
Cloning https://github.com/OpenMined/TenSEAL.git to c:\users\ea_or\appdata\local\temp\pip-install-x35l6ndz\tenseal_f4cf4811fde34555a6232e36086f8552
Running command git clone --filter=blob:none --quiet https://github.com/OpenMined/TenSEAL.git 'C:\Users\ea_or\AppData\Local\Temp\pip-install-x35l6ndz\tenseal_f4cf4811fde34555a6232e36086f8552'
Resolved https://github.com/OpenMined/TenSEAL.git to commit 1348659
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: tenseal
Building wheel for tenseal (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for tenseal (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [189 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-312
creating build\lib.win-amd64-cpython-312\tenseal
copying tenseal\enc_context.py -> build\lib.win-amd64-cpython-312\tenseal
copying tenseal\version.py -> build\lib.win-amd64-cpython-312\tenseal
copying tenseal_init_.py -> build\lib.win-amd64-cpython-312\tenseal
creating build\lib.win-amd64-cpython-312\tenseal\sealapi
copying tenseal\sealapi_init_.py -> build\lib.win-amd64-cpython-312\tenseal\sealapi
creating build\lib.win-amd64-cpython-312\tenseal\tensors
copying tenseal\tensors\abstract_tensor.py -> build\lib.win-amd64-cpython-312\tenseal\tensors
copying tenseal\tensors\bfvtensor.py -> build\lib.win-amd64-cpython-312\tenseal\tensors
copying tenseal\tensors\bfvvector.py -> build\lib.win-amd64-cpython-312\tenseal\tensors
copying tenseal\tensors\ckkstensor.py -> build\lib.win-amd64-cpython-312\tenseal\tensors
copying tenseal\tensors\ckksvector.py -> build\lib.win-amd64-cpython-312\tenseal\tensors
copying tenseal\tensors\plaintensor.py -> build\lib.win-amd64-cpython-312\tenseal\tensors
copying tenseal\tensors_init_.py -> build\lib.win-amd64-cpython-312\tenseal\tensors
creating build\lib.win-amd64-cpython-312\tenseal\sealapi\util
copying tenseal\sealapi\util_init_.py -> build\lib.win-amd64-cpython-312\tenseal\sealapi\util
running build_ext
:41: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- The C compiler identification is MSVC 19.38.33130.0
-- The CXX compiler identification is MSVC 19.38.33130.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build type (CMAKE_BUILD_TYPE): Release
-- Microsoft SEAL debug mode: OFF
-- SEAL_USE_CXX17: ON
-- SEAL_BUILD_DEPS: ON
-- SEAL_USE_MSGSL: ON
-- Microsoft GSL: download ...
CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.30/Modules/FetchContent.cmake:1953 (message):
Calling FetchContent_Populate(msgsl) is deprecated, call
FetchContent_MakeAvailable(msgsl) instead. Policy CMP0169 can be set to
OLD to allow FetchContent_Populate(msgsl) to be called directly for now,
but the ability to call it with declared details will be removed completely
in a future version.
Call Stack (most recent call first):
build/temp.win-amd64-cpython-312/Release/_deps/com_microsoft_seal-src/cmake/ExternalMSGSL.cmake:12 (FetchContent_Populate)
build/temp.win-amd64-cpython-312/Release/_deps/com_microsoft_seal-src/cmake/SEALMacros.cmake:17 (include)
build/temp.win-amd64-cpython-312/Release/_deps/com_microsoft_seal-src/CMakeLists.txt:150 (seal_fetch_thirdparty_content)
This warning is for project developers. Use -Wno-dev to suppress it.
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for tenseal
Failed to build tenseal
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (tenseal)`
System Information
The text was updated successfully, but these errors were encountered: