-
Notifications
You must be signed in to change notification settings - Fork 365
Description
Hi. First of all, thank you very much for this project. We've been using it for several years in a meta-learning class.
Unfortunately, for some reason the installation of learn2learn on Google Colab no longer works, and it's possible that the reason might be that Colab's current python version is no longer compatible with learn2learn. I'm pasting the installation logs below.
Is there an easy fix to make the library work again on Google Colab?
Thank you very much.
!pip install learn2learn
Collecting learn2learn
Downloading learn2learn-0.2.0.tar.gz (7.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.0/7.0 MB 40.1 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.15.4 in /usr/local/lib/python3.11/dist-packages (from learn2learn) (1.26.4)
Requirement already satisfied: gym>=0.14.0 in /usr/local/lib/python3.11/dist-packages (from learn2learn) (0.25.2)
Requirement already satisfied: torch>=1.1.0 in /usr/local/lib/python3.11/dist-packages (from learn2learn) (2.5.1+cu124)
Requirement already satisfied: torchvision>=0.3.0 in /usr/local/lib/python3.11/dist-packages (from learn2learn) (0.20.1+cu124)
Requirement already satisfied: scipy in /usr/local/lib/python3.11/dist-packages (from learn2learn) (1.14.1)
Requirement already satisfied: requests in /usr/local/lib/python3.11/dist-packages (from learn2learn) (2.32.3)
Collecting gsutil (from learn2learn)
Downloading gsutil-5.33.tar.gz (3.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 56.7 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Requirement already satisfied: tqdm in /usr/local/lib/python3.11/dist-packages (from learn2learn) (4.67.1)
Collecting qpth>=0.0.15 (from learn2learn)
Downloading qpth-0.0.18.tar.gz (16 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: cloudpickle>=1.2.0 in /usr/local/lib/python3.11/dist-packages (from gym>=0.14.0->learn2learn) (3.1.1)
Requirement already satisfied: gym_notices>=0.0.4 in /usr/local/lib/python3.11/dist-packages (from gym>=0.14.0->learn2learn) (0.0.8)
Requirement already satisfied: cvxpy>=1.1.0 in /usr/local/lib/python3.11/dist-packages (from qpth>=0.0.15->learn2learn) (1.6.2)
Requirement already satisfied: filelock in /usr/local/lib/python3.11/dist-packages (from torch>=1.1.0->learn2learn) (3.17.0)
Requirement already satisfied: typing-extensions>=4.8.0 in /usr/local/lib/python3.11/dist-packages (from torch>=1.1.0->learn2learn) (4.12.2)
Requirement already satisfied: networkx in /usr/local/lib/python3.11/dist-packages (from torch>=1.1.0->learn2learn) (3.4.2)
Requirement already satisfied: jinja2 in /usr/local/lib/python3.11/dist-packages (from torch>=1.1.0->learn2learn) (3.1.6)
Requirement already satisfied: fsspec in /usr/local/lib/python3.11/dist-packages (from torch>=1.1.0->learn2learn) (2024.10.0)
Collecting nvidia-cuda-nvrtc-cu12==12.4.127 (from torch>=1.1.0->learn2learn)
Downloading nvidia_cuda_nvrtc_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)
Collecting nvidia-cuda-runtime-cu12==12.4.127 (from torch>=1.1.0->learn2learn)
Downloading nvidia_cuda_runtime_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)
Collecting nvidia-cuda-cupti-cu12==12.4.127 (from torch>=1.1.0->learn2learn)
Downloading nvidia_cuda_cupti_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl.metadata (1.6 kB)
Collecting nvidia-cudnn-cu12==9.1.0.70 (from torch>=1.1.0->learn2learn)
Downloading nvidia_cudnn_cu12-9.1.0.70-py3-none-manylinux2014_x86_64.whl.metadata (1.6 kB)
Collecting nvidia-cublas-cu12==12.4.5.8 (from torch>=1.1.0->learn2learn)
Downloading nvidia_cublas_cu12-12.4.5.8-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)
Collecting nvidia-cufft-cu12==11.2.1.3 (from torch>=1.1.0->learn2learn)
Downloading nvidia_cufft_cu12-11.2.1.3-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)
Collecting nvidia-curand-cu12==10.3.5.147 (from torch>=1.1.0->learn2learn)
Downloading nvidia_curand_cu12-10.3.5.147-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)
Collecting nvidia-cusolver-cu12==11.6.1.9 (from torch>=1.1.0->learn2learn)
Downloading nvidia_cusolver_cu12-11.6.1.9-py3-none-manylinux2014_x86_64.whl.metadata (1.6 kB)
Collecting nvidia-cusparse-cu12==12.3.1.170 (from torch>=1.1.0->learn2learn)
Downloading nvidia_cusparse_cu12-12.3.1.170-py3-none-manylinux2014_x86_64.whl.metadata (1.6 kB)
Requirement already satisfied: nvidia-nccl-cu12==2.21.5 in /usr/local/lib/python3.11/dist-packages (from torch>=1.1.0->learn2learn) (2.21.5)
Requirement already satisfied: nvidia-nvtx-cu12==12.4.127 in /usr/local/lib/python3.11/dist-packages (from torch>=1.1.0->learn2learn) (12.4.127)
Collecting nvidia-nvjitlink-cu12==12.4.127 (from torch>=1.1.0->learn2learn)
Downloading nvidia_nvjitlink_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)
Requirement already satisfied: triton==3.1.0 in /usr/local/lib/python3.11/dist-packages (from torch>=1.1.0->learn2learn) (3.1.0)
Requirement already satisfied: sympy==1.13.1 in /usr/local/lib/python3.11/dist-packages (from torch>=1.1.0->learn2learn) (1.13.1)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in /usr/local/lib/python3.11/dist-packages (from sympy==1.13.1->torch>=1.1.0->learn2learn) (1.3.0)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in /usr/local/lib/python3.11/dist-packages (from torchvision>=0.3.0->learn2learn) (11.1.0)
Collecting argcomplete>=3.5.1 (from gsutil->learn2learn)
Downloading argcomplete-3.6.0-py3-none-any.whl.metadata (16 kB)
Collecting crcmod>=1.7 (from gsutil->learn2learn)
Downloading crcmod-1.7.tar.gz (89 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 89.7/89.7 kB 5.7 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting fasteners>=0.14.1 (from gsutil->learn2learn)
Downloading fasteners-0.19-py3-none-any.whl.metadata (4.9 kB)
Collecting gcs-oauth2-boto-plugin>=3.2 (from gsutil->learn2learn)
Downloading gcs-oauth2-boto-plugin-3.2.tar.gz (22 kB)
Preparing metadata (setup.py) ... done
Collecting google-apitools>=0.5.32 (from gsutil->learn2learn)
Downloading google_apitools-0.5.32-py3-none-any.whl.metadata (2.3 kB)
Collecting httplib2==0.20.4 (from gsutil->learn2learn)
Downloading httplib2-0.20.4-py3-none-any.whl.metadata (2.5 kB)
Collecting google-reauth>=0.1.0 (from gsutil->learn2learn)
Downloading google_reauth-0.1.1-py2.py3-none-any.whl.metadata (2.6 kB)
Collecting monotonic>=1.4 (from gsutil->learn2learn)
Downloading monotonic-1.6-py2.py3-none-any.whl.metadata (1.5 kB)
Requirement already satisfied: pyOpenSSL<=24.2.1,>=0.13 in /usr/local/lib/python3.11/dist-packages (from gsutil->learn2learn) (24.2.1)
Collecting retry_decorator>=1.0.0 (from gsutil->learn2learn)
Downloading retry_decorator-1.1.1.tar.gz (3.9 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: six>=1.16.0 in /usr/local/lib/python3.11/dist-packages (from gsutil->learn2learn) (1.17.0)
Collecting google-auth==2.17.0 (from google-auth[aiohttp]==2.17.0->gsutil->learn2learn)
Downloading google_auth-2.17.0-py2.py3-none-any.whl.metadata (4.3 kB)
Requirement already satisfied: google-auth-httplib2>=0.2.0 in /usr/local/lib/python3.11/dist-packages (from gsutil->learn2learn) (0.2.0)
Requirement already satisfied: cachetools<6.0,>=2.0.0 in /usr/local/lib/python3.11/dist-packages (from google-auth==2.17.0->google-auth[aiohttp]==2.17.0->gsutil->learn2learn) (5.5.2)
Requirement already satisfied: pyasn1-modules>=0.2.1 in /usr/local/lib/python3.11/dist-packages (from google-auth==2.17.0->google-auth[aiohttp]==2.17.0->gsutil->learn2learn) (0.4.1)
Requirement already satisfied: rsa<5,>=3.1.4 in /usr/local/lib/python3.11/dist-packages (from google-auth==2.17.0->google-auth[aiohttp]==2.17.0->gsutil->learn2learn) (4.9)
Requirement already satisfied: aiohttp<4.0.0dev,>=3.6.2 in /usr/local/lib/python3.11/dist-packages (from google-auth[aiohttp]==2.17.0->gsutil->learn2learn) (3.11.13)
Requirement already satisfied: pyparsing!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3,<4,>=2.4.2 in /usr/local/lib/python3.11/dist-packages (from httplib2==0.20.4->gsutil->learn2learn) (3.2.1)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.11/dist-packages (from requests->learn2learn) (3.4.1)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.11/dist-packages (from requests->learn2learn) (3.10)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.11/dist-packages (from requests->learn2learn) (2.3.0)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.11/dist-packages (from requests->learn2learn) (2025.1.31)
Requirement already satisfied: osqp>=0.6.2 in /usr/local/lib/python3.11/dist-packages (from cvxpy>=1.1.0->qpth>=0.0.15->learn2learn) (0.6.7.post3)
Requirement already satisfied: clarabel>=0.5.0 in /usr/local/lib/python3.11/dist-packages (from cvxpy>=1.1.0->qpth>=0.0.15->learn2learn) (0.10.0)
Requirement already satisfied: scs>=3.2.4.post1 in /usr/local/lib/python3.11/dist-packages (from cvxpy>=1.1.0->qpth>=0.0.15->learn2learn) (3.2.7.post2)
Collecting rsa<5,>=3.1.4 (from google-auth==2.17.0->google-auth[aiohttp]==2.17.0->gsutil->learn2learn)
Downloading rsa-4.7.2-py3-none-any.whl.metadata (3.6 kB)
Collecting boto>=2.29.1 (from gcs-oauth2-boto-plugin>=3.2->gsutil->learn2learn)
Downloading boto-2.49.0-py2.py3-none-any.whl.metadata (7.3 kB)
Requirement already satisfied: oauth2client>=2.2.0 in /usr/local/lib/python3.11/dist-packages (from gcs-oauth2-boto-plugin>=3.2->gsutil->learn2learn) (4.1.3)
Requirement already satisfied: pyasn1>=0.1.3 in /usr/local/lib/python3.11/dist-packages (from rsa<5,>=3.1.4->google-auth==2.17.0->google-auth[aiohttp]==2.17.0->gsutil->learn2learn) (0.6.1)
Collecting pyu2f (from google-reauth>=0.1.0->gsutil->learn2learn)
Downloading pyu2f-0.1.5.tar.gz (27 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: cryptography<44,>=41.0.5 in /usr/local/lib/python3.11/dist-packages (from pyOpenSSL<=24.2.1,>=0.13->gsutil->learn2learn) (43.0.3)
Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.11/dist-packages (from jinja2->torch>=1.1.0->learn2learn) (3.0.2)
Requirement already satisfied: aiohappyeyeballs>=2.3.0 in /usr/local/lib/python3.11/dist-packages (from aiohttp<4.0.0dev,>=3.6.2->google-auth[aiohttp]==2.17.0->gsutil->learn2learn) (2.5.0)
Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.11/dist-packages (from aiohttp<4.0.0dev,>=3.6.2->google-auth[aiohttp]==2.17.0->gsutil->learn2learn) (1.3.2)
Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.11/dist-packages (from aiohttp<4.0.0dev,>=3.6.2->google-auth[aiohttp]==2.17.0->gsutil->learn2learn) (25.1.0)
Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.11/dist-packages (from aiohttp<4.0.0dev,>=3.6.2->google-auth[aiohttp]==2.17.0->gsutil->learn2learn) (1.5.0)
Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.11/dist-packages (from aiohttp<4.0.0dev,>=3.6.2->google-auth[aiohttp]==2.17.0->gsutil->learn2learn) (6.1.0)
Requirement already satisfied: propcache>=0.2.0 in /usr/local/lib/python3.11/dist-packages (from aiohttp<4.0.0dev,>=3.6.2->google-auth[aiohttp]==2.17.0->gsutil->learn2learn) (0.3.0)
Requirement already satisfied: yarl<2.0,>=1.17.0 in /usr/local/lib/python3.11/dist-packages (from aiohttp<4.0.0dev,>=3.6.2->google-auth[aiohttp]==2.17.0->gsutil->learn2learn) (1.18.3)
Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.11/dist-packages (from cryptography<44,>=41.0.5->pyOpenSSL<=24.2.1,>=0.13->gsutil->learn2learn) (1.17.1)
Requirement already satisfied: qdldl in /usr/local/lib/python3.11/dist-packages (from osqp>=0.6.2->cvxpy>=1.1.0->qpth>=0.0.15->learn2learn) (0.1.7.post5)
Requirement already satisfied: pycparser in /usr/local/lib/python3.11/dist-packages (from cffi>=1.12->cryptography<44,>=41.0.5->pyOpenSSL<=24.2.1,>=0.13->gsutil->learn2learn) (2.22)
Downloading nvidia_cublas_cu12-12.4.5.8-py3-none-manylinux2014_x86_64.whl (363.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 363.4/363.4 MB 2.8 MB/s eta 0:00:00
Downloading nvidia_cuda_cupti_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl (13.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.8/13.8 MB 104.3 MB/s eta 0:00:00
Downloading nvidia_cuda_nvrtc_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl (24.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 24.6/24.6 MB 83.4 MB/s eta 0:00:00
Downloading nvidia_cuda_runtime_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl (883 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 883.7/883.7 kB 51.1 MB/s eta 0:00:00
Downloading nvidia_cudnn_cu12-9.1.0.70-py3-none-manylinux2014_x86_64.whl (664.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 664.8/664.8 MB 2.0 MB/s eta 0:00:00
Downloading nvidia_cufft_cu12-11.2.1.3-py3-none-manylinux2014_x86_64.whl (211.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 211.5/211.5 MB 5.4 MB/s eta 0:00:00
Downloading nvidia_curand_cu12-10.3.5.147-py3-none-manylinux2014_x86_64.whl (56.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.3/56.3 MB 9.4 MB/s eta 0:00:00
Downloading nvidia_cusolver_cu12-11.6.1.9-py3-none-manylinux2014_x86_64.whl (127.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 127.9/127.9 MB 7.1 MB/s eta 0:00:00
Downloading nvidia_cusparse_cu12-12.3.1.170-py3-none-manylinux2014_x86_64.whl (207.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 207.5/207.5 MB 6.3 MB/s eta 0:00:00
Downloading nvidia_nvjitlink_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl (21.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 21.1/21.1 MB 60.3 MB/s eta 0:00:00
Downloading google_auth-2.17.0-py2.py3-none-any.whl (178 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 178.1/178.1 kB 5.2 MB/s eta 0:00:00
Downloading httplib2-0.20.4-py3-none-any.whl (96 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.6/96.6 kB 5.9 MB/s eta 0:00:00
Downloading argcomplete-3.6.0-py3-none-any.whl (43 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.8/43.8 kB 3.0 MB/s eta 0:00:00
Downloading fasteners-0.19-py3-none-any.whl (18 kB)
Downloading rsa-4.7.2-py3-none-any.whl (34 kB)
Downloading google_apitools-0.5.32-py3-none-any.whl (135 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 135.7/135.7 kB 10.1 MB/s eta 0:00:00
Downloading google_reauth-0.1.1-py2.py3-none-any.whl (17 kB)
Downloading monotonic-1.6-py2.py3-none-any.whl (8.2 kB)
Downloading boto-2.49.0-py2.py3-none-any.whl (1.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 53.9 MB/s eta 0:00:00
Building wheels for collected packages: learn2learn, qpth, gsutil, crcmod, gcs-oauth2-boto-plugin, retry_decorator, pyu2f
error: subprocess-exited-with-error
× python setup.py bdist_wheel 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.
Building wheel for learn2learn (setup.py) ... error
ERROR: Failed building wheel for learn2learn
Running setup.py clean for learn2learn
Building wheel for qpth (setup.py) ... done
Created wheel for qpth: filename=qpth-0.0.18-py3-none-any.whl size=19544 sha256=05bc121a6b0d87e872766def3d01a5df6453879895672a074a0009804bd94a80
Stored in directory: /root/.cache/pip/wheels/be/b5/f4/12c3bdf837e1564e4633463f0628e02ef101c6c2e198fc85b9
Building wheel for gsutil (setup.py) ... done
Created wheel for gsutil: filename=gsutil-5.33-py3-none-any.whl size=3789758 sha256=082dbaf4ba430c82b34b80d208bbdb4023413a6f9f99b8f6b6dceede9d5204ab
Stored in directory: /root/.cache/pip/wheels/06/b5/5b/1f1708a80657d8569a5b5e3f82ae18c48f9845bf93de8eba34
Building wheel for crcmod (setup.py) ... done
Created wheel for crcmod: filename=crcmod-1.7-cp311-cp311-linux_x86_64.whl size=31658 sha256=d49ec85eee6726ce4317b79b0cdc869d4e89b41172f1e3650fdaaa43c72c8ec7
Stored in directory: /root/.cache/pip/wheels/23/94/7a/8cb7d14597e6395ce969933f01aed9ea8fa5f5b4d4c8a61e99
Building wheel for gcs-oauth2-boto-plugin (setup.py) ... done
Created wheel for gcs-oauth2-boto-plugin: filename=gcs_oauth2_boto_plugin-3.2-py3-none-any.whl size=24460 sha256=8eb9a1b19f2be9a65af9252090044983310aaed90fe9e39e732e17c0c3c18be8
Stored in directory: /root/.cache/pip/wheels/a0/89/64/75e825f5a502d767cbf63b3967be62bd28ee4aeb141f2cef04
Building wheel for retry_decorator (setup.py) ... done
Created wheel for retry_decorator: filename=retry_decorator-1.1.1-py2.py3-none-any.whl size=3636 sha256=3ab594694c4a6f8bf8e1159ffe8608ad63d717bb7e84225334f10ce27de1477b
Stored in directory: /root/.cache/pip/wheels/42/60/35/e28d9a08360ed3f21670e4e9a0931c313541d432524840c018
Building wheel for pyu2f (setup.py) ... done
Created wheel for pyu2f: filename=pyu2f-0.1.5-py3-none-any.whl size=39401 sha256=84a79202f0eb73377eb86fba2935d364d39182a2a52e2e56ef2c5e77f495d90b
Stored in directory: /root/.cache/pip/wheels/e1/20/44/e0ce87d159f91c02f4f363be32614cb05ad9023f2ad2e63e82
Successfully built qpth gsutil crcmod gcs-oauth2-boto-plugin retry_decorator pyu2f
Failed to build learn2learn
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (learn2learn)