tristandeleu / pytorch-meta

A collection of extensions and data-loaders for few-shot learning & meta-learning in PyTorch
https://tristandeleu.github.io/pytorch-meta/
MIT License
1.97k stars 256 forks source link

Error when new installing #144

Open pmtang opened 2 years ago

pmtang commented 2 years ago

I run "pip3 install torchmeta" and get the Error below:

... Collecting idna<4,>=2.5; python_version >= "3" Downloading idna-3.3-py3-none-any.whl (61 kB) |████████████████████████████████| 61 kB 7.0 MB/s Requirement already satisfied: typing-extensions in ./venv/lib/python3.8/site-packages (from torch<1.10.0,>=1.4.0->torchmeta) (3.10.0.2) Building wheels for collected packages: ordered-set Building wheel for ordered-set (setup.py) ... error ERROR: Command errored out with exit status 1: command: /home/benjitinou/Fraunhofer/as/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6lfemgyl/ordered-set/setup.py'"'"'; file='"'"'/tmp/pip-install-6lfemgyl/ordered-set/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-yd_ysyep cwd: /tmp/pip-install-6lfemgyl/ordered-set/ Complete output (6 lines): usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help

error: invalid command 'bdist_wheel'

ERROR: Failed building wheel for ordered-set Running setup.py clean for ordered-set Failed to build ordered-set Installing collected packages: torch, torchvision, ordered-set, h5py, charset-normalizer, certifi, urllib3, idna, requests, torchmeta Attempting uninstall: torch Found existing installation: torch 1.10.0+cu113 Uninstalling torch-1.10.0+cu113: Successfully uninstalled torch-1.10.0+cu113 Attempting uninstall: torchvision Found existing installation: torchvision 0.11.1+cu113 Uninstalling torchvision-0.11.1+cu113: Successfully uninstalled torchvision-0.11.1+cu113 Running setup.py install for ordered-set ... done Successfully installed certifi-2021.10.8 charset-normalizer-2.0.7 h5py-3.5.0 idna-3.3 ordered-set-4.0.2 requests-2.26.0 torch-1.9.1 torchmeta-1.8.0 torchvision-0.10.1 urllib3-1.26.7`

Pathi-rao commented 2 years ago

I run "pip3 install torchmeta" and get the Error below:

... Collecting idna<4,>=2.5; python_version >= "3" Downloading idna-3.3-py3-none-any.whl (61 kB) |████████████████████████████████| 61 kB 7.0 MB/s Requirement already satisfied: typing-extensions in ./venv/lib/python3.8/site-packages (from torch<1.10.0,>=1.4.0->torchmeta) (3.10.0.2) Building wheels for collected packages: ordered-set Building wheel for ordered-set (setup.py) ... error ERROR: Command errored out with exit status 1: command: /home/benjitinou/Fraunhofer/as/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6lfemgyl/ordered-set/setup.py'"'"'; file='"'"'/tmp/pip-install-6lfemgyl/ordered-set/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-yd_ysyep cwd: /tmp/pip-install-6lfemgyl/ordered-set/ Complete output (6 lines): usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help

error: invalid command 'bdist_wheel'

ERROR: Failed building wheel for ordered-set Running setup.py clean for ordered-set Failed to build ordered-set Installing collected packages: torch, torchvision, ordered-set, h5py, charset-normalizer, certifi, urllib3, idna, requests, torchmeta Attempting uninstall: torch Found existing installation: torch 1.10.0+cu113 Uninstalling torch-1.10.0+cu113: Successfully uninstalled torch-1.10.0+cu113 Attempting uninstall: torchvision Found existing installation: torchvision 0.11.1+cu113 Uninstalling torchvision-0.11.1+cu113: Successfully uninstalled torchvision-0.11.1+cu113 Running setup.py install for ordered-set ... done Successfully installed certifi-2021.10.8 charset-normalizer-2.0.7 h5py-3.5.0 idna-3.3 ordered-set-4.0.2 requests-2.26.0 torch-1.9.1 torchmeta-1.8.0 torchvision-0.10.1 urllib3-1.26.7`

Hey, could you try importing something from torchmeta and see if its works? Eg: from torchmeta.datasets.helpers import omniglot