在 Python 3.11 上安装 tinyaes 1.0.3 失败解决办法

Installing tinyaes fails on Windows 10 with the latest release of Python:

pip3 install tinyaes
Collecting tinyaes
Using cached tinyaes-1.0.3.tar.gz (42 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: tinyaes
Building wheel for tinyaes (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for tinyaes (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
running bdist_wheel
running build
running build_ext
building 'tinyaes' extension
creating build
creating build\temp.win-amd64-cpython-311
creating build\temp.win-amd64-cpython-311\Release
creating build\temp.win-amd64-cpython-311\Release\tiny-AES-c
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Itiny-AES-c/ -IC:\Users\Mark\AppData\Local\Programs\Python\Python311\include -IC:\Users\Mark\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tctiny-AES-c/aes.c /Fobuild\temp.win-amd64-cpython-311\Release\tiny-AES-c/aes.obj
aes.c
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Itiny-AES-c/ -IC:\Users\Mark\AppData\Local\Programs\Python\Python311\include -IC:\Users\Mark\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tctinyaes.c /Fobuild\temp.win-amd64-cpython-311\Release\tinyaes.obj
tinyaes.c
tinyaes.c(3601): error C2037: left of 'f_lineno' specifies undefined struct/union '_frame'
error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\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 tinyaes
Failed to build tinyaes
ERROR: Could not build wheels for tinyaes, which is required to install pyproject.toml-based projects

当Python3.11.0版本使用pip install tinyaes的时候会报错 

解决办法  下载tinyaes-1.0.3-cp311-cp311-win_amd64.whl 文件 然后直接 pip install  tinyaes-1.0.3-cp311-cp311-win_amd64.whl

已经完美解决!

91325a5c3e0be32c1a0e3cd6191db147

THE END
分享
二维码
打赏
海报
在 Python 3.11 上安装 tinyaes 1.0.3 失败解决办法
Installing tinyaes fails on Windows 10 with the latest release of Python: pip3 install tinyaes Collecting tinyaes Using cached tinyaes-1.0.3.tar.gz ……
<<上一篇
下一篇>>