Open zy-zhou opened 1 year ago
Failed building wheel for learn2learn using pip install learn2learn on Python 3.11. On Python 3.10 there is no problem. This seems to be caused by a Cython update https://github.com/cython/cython/pull/4428. Similar issues: https://github.com/aio-libs/aiohttp/issues/6600, https://github.com/ParallelSSH/ssh2-python/issues/174
pip install learn2learn
OS: Windows 10 Python: 3.11.4
building 'learn2learn.data.meta_dataset' extension creating build\temp.win-amd64-cpython-311 creating build\temp.win-amd64-cpython-311\Release creating build\temp.win-amd64-cpython-311\Release\learn2learn creating build\temp.win-amd64-cpython-311\Release\learn2learn\data "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -ID:\Anaconda\envs\ai4science\include -ID:\Anaconda\envs\ai4science\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt" /Tclearn2learn/data/meta_dataset.c /Fobuild\temp.win-amd64-cpython-311\Release\learn2learn/data/meta_dataset.obj meta_dataset.c learn2learn/data/meta_dataset.c(210): fatal error C1083: 无法打开包括文件: “longintrepr.h”: No such file or directory error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.36.32532\\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 learn2learn
Same with Windows 11.
Did host fix it ?
Same on linux. Repro:
podman run -it --rm docker.io/library/python:3.11 /bin/bash -c "pip wheel learn2learn"
Description
Failed building wheel for learn2learn using
pip install learn2learn
on Python 3.11. On Python 3.10 there is no problem. This seems to be caused by a Cython update https://github.com/cython/cython/pull/4428. Similar issues: https://github.com/aio-libs/aiohttp/issues/6600, https://github.com/ParallelSSH/ssh2-python/issues/174Environment
OS: Windows 10 Python: 3.11.4
Logs