bjornedstrom / python-sha3

Python implementation of FIPS SHA3 and SHAKE
Other
44 stars 18 forks source link

pip install sha3 error #11

Open Syasya20 opened 8 months ago

Syasya20 commented 8 months ago

(.venv) PS C:\Python\pythonProject> pip install sha3
Collecting sha3 Using cached sha3-0.2.1.tar.gz (616 kB) Preparing metadata (setup.py) ... done Building wheels for collected packages: sha3 Building wheel for sha3 (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [4 lines of output] sha3.c sha3.c(33): error C2016: C requires that a struct or union have at least one member sha3.c(326): error C2106: '=': left operand must be l-value error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX86\x64\cl.exe' failed with exit code 2 [end of output]

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

my OS Win11x64 install pack: Visual Studio Windows 10 SDK (10.0.20348.0) Windows 11 SDK (10.0.22621.0)
MSCV v143 vs-2022 C++x64/x86 build tools (latest) MSCV v142 vs-2019 C++x64/x86 build tools (v14.29) C++ CMake tools for Windows Testing tools core features - Biuld Tools C++ Adress Sanitizer C++ ATL for latest v143 tools (x64&x86) Python 3.12.2