Closed kavehhassani closed 3 years ago
Hello @kavehhassani ,
Cython (and learn2learn) requires the CPython headers to by installed. This Stackoverflow issue explains how you can install them: https://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory
Hi,
I got the following error while trying to pip install the package:
Building wheels for collected packages: learn2learn Building wheel for learn2learn (setup.py) ... error ERROR: Command errored out with exit status 1: command: /raid/virtualenvs/python3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4zzy048r/learn2learn_9e34b8604e444d2890c15094dee60054/setup.py'"'"'; file='"'"'/tmp/pip-install-4zzy048r/learn2learn_9e34b8604e444d2890c15094dee60054/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-fhgx9_r8 cwd: /tmp/pip-install-4zzy048r/learn2learn_9e34b8604e444d2890c15094dee60054/ Complete output (131 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/tests copying tests/init.py -> build/lib.linux-x86_64-3.8/tests creating build/lib.linux-x86_64-3.8/learn2learn copying learn2learn/utils.py -> build/lib.linux-x86_64-3.8/learn2learn copying learn2learn/_version.py -> build/lib.linux-x86_64-3.8/learn2learn copying learn2learn/init.py -> build/lib.linux-x86_64-3.8/learn2learn creating build/lib.linux-x86_64-3.8/tests/unit copying tests/unit/utils_test.py -> build/lib.linux-x86_64-3.8/tests/unit copying tests/unit/init.py -> build/lib.linux-x86_64-3.8/tests/unit creating build/lib.linux-x86_64-3.8/tests/integration copying tests/integration/protonets_miniimagenet_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/integration copying tests/integration/maml_miniimagenet_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/integration copying tests/integration/maml_omniglot_test.py -> build/lib.linux-x86_64-3.8/tests/integration copying tests/integration/init.py -> build/lib.linux-x86_64-3.8/tests/integration creating build/lib.linux-x86_64-3.8/tests/unit/algorithms copying tests/unit/algorithms/maml_test.py -> build/lib.linux-x86_64-3.8/tests/unit/algorithms copying tests/unit/algorithms/gbml_test.py -> build/lib.linux-x86_64-3.8/tests/unit/algorithms copying tests/unit/algorithms/metasgd_test.py -> build/lib.linux-x86_64-3.8/tests/unit/algorithms copying tests/unit/algorithms/init.py -> build/lib.linux-x86_64-3.8/tests/unit/algorithms creating build/lib.linux-x86_64-3.8/tests/unit/data copying tests/unit/data/metadataset_test.py -> build/lib.linux-x86_64-3.8/tests/unit/data copying tests/unit/data/util_datasets.py -> build/lib.linux-x86_64-3.8/tests/unit/data copying tests/unit/data/transforms_test.py -> build/lib.linux-x86_64-3.8/tests/unit/data copying tests/unit/data/task_dataset_test.py -> build/lib.linux-x86_64-3.8/tests/unit/data copying tests/unit/data/init.py -> build/lib.linux-x86_64-3.8/tests/unit/data creating build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/tiered_imagenet_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/describable_textures_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/benchmarks_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/vgg_flowers_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/cifarfs_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/cu_birds200_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/fc100_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/quickdraw_test_no.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/fgvc_aircraft_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/init.py -> build/lib.linux-x86_64-3.8/tests/unit/vision creating build/lib.linux-x86_64-3.8/learn2learn/nn copying learn2learn/nn/misc.py -> build/lib.linux-x86_64-3.8/learn2learn/nn copying learn2learn/nn/kroneckers.py -> build/lib.linux-x86_64-3.8/learn2learn/nn copying learn2learn/nn/init.py -> build/lib.linux-x86_64-3.8/learn2learn/nn creating build/lib.linux-x86_64-3.8/learn2learn/algorithms copying learn2learn/algorithms/meta_sgd.py -> build/lib.linux-x86_64-3.8/learn2learn/algorithms copying learn2learn/algorithms/maml.py -> build/lib.linux-x86_64-3.8/learn2learn/algorithms copying learn2learn/algorithms/gbml.py -> build/lib.linux-x86_64-3.8/learn2learn/algorithms copying learn2learn/algorithms/base_learner.py -> build/lib.linux-x86_64-3.8/learn2learn/algorithms copying learn2learn/algorithms/init.py -> build/lib.linux-x86_64-3.8/learn2learn/algorithms creating build/lib.linux-x86_64-3.8/learn2learn/gym copying learn2learn/gym/init.py -> build/lib.linux-x86_64-3.8/learn2learn/gym copying learn2learn/gym/async_vec_env.py -> build/lib.linux-x86_64-3.8/learn2learn/gym creating build/lib.linux-x86_64-3.8/learn2learn/data copying learn2learn/data/utils.py -> build/lib.linux-x86_64-3.8/learn2learn/data copying learn2learn/data/init.py -> build/lib.linux-x86_64-3.8/learn2learn/data creating build/lib.linux-x86_64-3.8/learn2learn/text copying learn2learn/text/init.py -> build/lib.linux-x86_64-3.8/learn2learn/text creating build/lib.linux-x86_64-3.8/learn2learn/optim copying learn2learn/optim/learnable_optimizer.py -> build/lib.linux-x86_64-3.8/learn2learn/optim copying learn2learn/optim/parameter_update.py -> build/lib.linux-x86_64-3.8/learn2learn/optim copying learn2learn/optim/init.py -> build/lib.linux-x86_64-3.8/learn2learn/optim creating build/lib.linux-x86_64-3.8/learn2learn/vision copying learn2learn/vision/transforms.py -> build/lib.linux-x86_64-3.8/learn2learn/vision copying learn2learn/vision/init.py -> build/lib.linux-x86_64-3.8/learn2learn/vision creating build/lib.linux-x86_64-3.8/learn2learn/gym/envs copying learn2learn/gym/envs/meta_env.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs copying learn2learn/gym/envs/subproc_vec_env.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs copying learn2learn/gym/envs/init.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs creating build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/ant_forward_backward.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/ant_direction.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/halfcheetah_forward_backward.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/humanoid_forward_backward.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/dummy_mujoco_env.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/init.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/humanoid_direction.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco creating build/lib.linux-x86_64-3.8/learn2learn/gym/envs/metaworld copying learn2learn/gym/envs/metaworld/metaworld.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/metaworld copying learn2learn/gym/envs/metaworld/init.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/metaworld creating build/lib.linux-x86_64-3.8/learn2learn/gym/envs/particles copying learn2learn/gym/envs/particles/particles_2d.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/particles copying learn2learn/gym/envs/particles/init.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/particles creating build/lib.linux-x86_64-3.8/learn2learn/text/datasets copying learn2learn/text/datasets/news_classification.py -> build/lib.linux-x86_64-3.8/learn2learn/text/datasets copying learn2learn/text/datasets/init.py -> build/lib.linux-x86_64-3.8/learn2learn/text/datasets creating build/lib.linux-x86_64-3.8/learn2learn/optim/update_rules copying learn2learn/optim/update_rules/differentiable_sgd.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/update_rules copying learn2learn/optim/update_rules/init.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/update_rules creating build/lib.linux-x86_64-3.8/learn2learn/optim/transforms copying learn2learn/optim/transforms/module_transform.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/transforms copying learn2learn/optim/transforms/kronecker_transform.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/transforms copying learn2learn/optim/transforms/metacurvature_transform.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/transforms copying learn2learn/optim/transforms/init.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/transforms copying learn2learn/optim/transforms/transform_dictionary.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/transforms creating build/lib.linux-x86_64-3.8/learn2learn/vision/models copying learn2learn/vision/models/resnet12.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/models copying learn2learn/vision/models/cnn4.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/models copying learn2learn/vision/models/init.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/models creating build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks copying learn2learn/vision/benchmarks/tiered_imagenet_benchmark.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks copying learn2learn/vision/benchmarks/cifarfs_benchmark.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks copying learn2learn/vision/benchmarks/mini_imagenet_benchmark.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks copying learn2learn/vision/benchmarks/omniglot_benchmark.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks copying learn2learn/vision/benchmarks/fc100_benchmark.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks copying learn2learn/vision/benchmarks/init.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks creating build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/fgvc_fungi.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/cifarfs.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/vgg_flowers.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/cu_birds200.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/mini_imagenet.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/tiered_imagenet.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/full_omniglot.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/describable_textures.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/quickdraw.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/fgvc_aircraft.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/init.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/fc100.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets running build_ext building 'learn2learn.data.meta_dataset' extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/learn2learn creating build/temp.linux-x86_64-3.8/learn2learn/data x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -I/raid/virtualenvs/python3.8/include/python3.8 -c learn2learn/data/meta_dataset.c -o build/temp.linux-x86_64-3.8/learn2learn/data/meta_dataset.o learn2learn/data/meta_dataset.c:16:10: fatal error: Python.h: No such file or directory
include "Python.h"
compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
ERROR: Failed building wheel for learn2learn Running setup.py clean for learn2learn Failed to build learn2learn Installing collected packages: learn2learn Running setup.py install for learn2learn ... error ERROR: Command errored out with exit status 1: command: /raid/virtualenvs/python3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4zzy048r/learn2learn_9e34b8604e444d2890c15094dee60054/setup.py'"'"'; file='"'"'/tmp/pip-install-4zzy048r/learn2learn_9e34b8604e444d2890c15094dee60054/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-hkuq4qyr/install-record.txt --single-version-externally-managed --compile --install-headers /raid/virtualenvs/python3.8/include/site/python3.8/learn2learn cwd: /tmp/pip-install-4zzy048r/learn2learn_9e34b8604e444d2890c15094dee60054/ Complete output (131 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/tests copying tests/init.py -> build/lib.linux-x86_64-3.8/tests creating build/lib.linux-x86_64-3.8/learn2learn copying learn2learn/utils.py -> build/lib.linux-x86_64-3.8/learn2learn copying learn2learn/_version.py -> build/lib.linux-x86_64-3.8/learn2learn copying learn2learn/init.py -> build/lib.linux-x86_64-3.8/learn2learn creating build/lib.linux-x86_64-3.8/tests/unit copying tests/unit/utils_test.py -> build/lib.linux-x86_64-3.8/tests/unit copying tests/unit/init.py -> build/lib.linux-x86_64-3.8/tests/unit creating build/lib.linux-x86_64-3.8/tests/integration copying tests/integration/protonets_miniimagenet_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/integration copying tests/integration/maml_miniimagenet_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/integration copying tests/integration/maml_omniglot_test.py -> build/lib.linux-x86_64-3.8/tests/integration copying tests/integration/init.py -> build/lib.linux-x86_64-3.8/tests/integration creating build/lib.linux-x86_64-3.8/tests/unit/algorithms copying tests/unit/algorithms/maml_test.py -> build/lib.linux-x86_64-3.8/tests/unit/algorithms copying tests/unit/algorithms/gbml_test.py -> build/lib.linux-x86_64-3.8/tests/unit/algorithms copying tests/unit/algorithms/metasgd_test.py -> build/lib.linux-x86_64-3.8/tests/unit/algorithms copying tests/unit/algorithms/init.py -> build/lib.linux-x86_64-3.8/tests/unit/algorithms creating build/lib.linux-x86_64-3.8/tests/unit/data copying tests/unit/data/metadataset_test.py -> build/lib.linux-x86_64-3.8/tests/unit/data copying tests/unit/data/util_datasets.py -> build/lib.linux-x86_64-3.8/tests/unit/data copying tests/unit/data/transforms_test.py -> build/lib.linux-x86_64-3.8/tests/unit/data copying tests/unit/data/task_dataset_test.py -> build/lib.linux-x86_64-3.8/tests/unit/data copying tests/unit/data/init.py -> build/lib.linux-x86_64-3.8/tests/unit/data creating build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/tiered_imagenet_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/describable_textures_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/benchmarks_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/vgg_flowers_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/cifarfs_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/cu_birds200_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/fc100_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/quickdraw_test_no.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/fgvc_aircraft_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/init.py -> build/lib.linux-x86_64-3.8/tests/unit/vision creating build/lib.linux-x86_64-3.8/learn2learn/nn copying learn2learn/nn/misc.py -> build/lib.linux-x86_64-3.8/learn2learn/nn copying learn2learn/nn/kroneckers.py -> build/lib.linux-x86_64-3.8/learn2learn/nn copying learn2learn/nn/init.py -> build/lib.linux-x86_64-3.8/learn2learn/nn creating build/lib.linux-x86_64-3.8/learn2learn/algorithms copying learn2learn/algorithms/meta_sgd.py -> build/lib.linux-x86_64-3.8/learn2learn/algorithms copying learn2learn/algorithms/maml.py -> build/lib.linux-x86_64-3.8/learn2learn/algorithms copying learn2learn/algorithms/gbml.py -> build/lib.linux-x86_64-3.8/learn2learn/algorithms copying learn2learn/algorithms/base_learner.py -> build/lib.linux-x86_64-3.8/learn2learn/algorithms copying learn2learn/algorithms/init.py -> build/lib.linux-x86_64-3.8/learn2learn/algorithms creating build/lib.linux-x86_64-3.8/learn2learn/gym copying learn2learn/gym/init.py -> build/lib.linux-x86_64-3.8/learn2learn/gym copying learn2learn/gym/async_vec_env.py -> build/lib.linux-x86_64-3.8/learn2learn/gym creating build/lib.linux-x86_64-3.8/learn2learn/data copying learn2learn/data/utils.py -> build/lib.linux-x86_64-3.8/learn2learn/data copying learn2learn/data/init.py -> build/lib.linux-x86_64-3.8/learn2learn/data creating build/lib.linux-x86_64-3.8/learn2learn/text copying learn2learn/text/init.py -> build/lib.linux-x86_64-3.8/learn2learn/text creating build/lib.linux-x86_64-3.8/learn2learn/optim copying learn2learn/optim/learnable_optimizer.py -> build/lib.linux-x86_64-3.8/learn2learn/optim copying learn2learn/optim/parameter_update.py -> build/lib.linux-x86_64-3.8/learn2learn/optim copying learn2learn/optim/init.py -> build/lib.linux-x86_64-3.8/learn2learn/optim creating build/lib.linux-x86_64-3.8/learn2learn/vision copying learn2learn/vision/transforms.py -> build/lib.linux-x86_64-3.8/learn2learn/vision copying learn2learn/vision/init.py -> build/lib.linux-x86_64-3.8/learn2learn/vision creating build/lib.linux-x86_64-3.8/learn2learn/gym/envs copying learn2learn/gym/envs/meta_env.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs copying learn2learn/gym/envs/subproc_vec_env.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs copying learn2learn/gym/envs/init.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs creating build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/ant_forward_backward.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/ant_direction.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/halfcheetah_forward_backward.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/humanoid_forward_backward.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/dummy_mujoco_env.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/init.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/humanoid_direction.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco creating build/lib.linux-x86_64-3.8/learn2learn/gym/envs/metaworld copying learn2learn/gym/envs/metaworld/metaworld.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/metaworld copying learn2learn/gym/envs/metaworld/init.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/metaworld creating build/lib.linux-x86_64-3.8/learn2learn/gym/envs/particles copying learn2learn/gym/envs/particles/particles_2d.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/particles copying learn2learn/gym/envs/particles/init.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/particles creating build/lib.linux-x86_64-3.8/learn2learn/text/datasets copying learn2learn/text/datasets/news_classification.py -> build/lib.linux-x86_64-3.8/learn2learn/text/datasets copying learn2learn/text/datasets/init.py -> build/lib.linux-x86_64-3.8/learn2learn/text/datasets creating build/lib.linux-x86_64-3.8/learn2learn/optim/update_rules copying learn2learn/optim/update_rules/differentiable_sgd.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/update_rules copying learn2learn/optim/update_rules/init.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/update_rules creating build/lib.linux-x86_64-3.8/learn2learn/optim/transforms copying learn2learn/optim/transforms/module_transform.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/transforms copying learn2learn/optim/transforms/kronecker_transform.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/transforms copying learn2learn/optim/transforms/metacurvature_transform.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/transforms copying learn2learn/optim/transforms/init.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/transforms copying learn2learn/optim/transforms/transform_dictionary.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/transforms creating build/lib.linux-x86_64-3.8/learn2learn/vision/models copying learn2learn/vision/models/resnet12.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/models copying learn2learn/vision/models/cnn4.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/models copying learn2learn/vision/models/init.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/models creating build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks copying learn2learn/vision/benchmarks/tiered_imagenet_benchmark.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks copying learn2learn/vision/benchmarks/cifarfs_benchmark.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks copying learn2learn/vision/benchmarks/mini_imagenet_benchmark.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks copying learn2learn/vision/benchmarks/omniglot_benchmark.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks copying learn2learn/vision/benchmarks/fc100_benchmark.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks copying learn2learn/vision/benchmarks/init.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks creating build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/fgvc_fungi.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/cifarfs.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/vgg_flowers.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/cu_birds200.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/mini_imagenet.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/tiered_imagenet.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/full_omniglot.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/describable_textures.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/quickdraw.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/fgvc_aircraft.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/init.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/fc100.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets running build_ext building 'learn2learn.data.meta_dataset' extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/learn2learn creating build/temp.linux-x86_64-3.8/learn2learn/data x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -I/raid/virtualenvs/python3.8/include/python3.8 -c learn2learn/data/meta_dataset.c -o build/temp.linux-x86_64-3.8/learn2learn/data/meta_dataset.o learn2learn/data/meta_dataset.c:16:10: fatal error: Python.h: No such file or directory
include "Python.h"
ERROR: Command errored out with exit status 1: /raid/virtualenvs/python3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4zzy048r/learn2learn_9e34b8604e444d2890c15094dee60054/setup.py'"'"'; file='"'"'/tmp/pip-install-4zzy048r/learn2learn_9e34b8604e444d2890c15094dee60054/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-hkuq4qyr/install-record.txt --single-version-externally-managed --compile --install-headers /raid/virtualenvs/python3.8/include/site/python3.8/learn2learn Check the logs for full command output. (python3.8) kaveh@autodeep10:~$ pip install cython Requirement already satisfied: cython in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (0.29.21) (python3.8) kaveh@autodeep10:~$ pip uninstall learn2learn WARNING: Skipping learn2learn as it is not installed. (python3.8) kaveh@autodeep10:~$ pip install learn2learn Collecting learn2learn Using cached learn2learn-0.1.4.tar.gz (590 kB) Requirement already satisfied: numpy>=1.15.4 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from learn2learn) (1.19.4) Requirement already satisfied: gym>=0.14.0 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from learn2learn) (0.17.3) Requirement already satisfied: torch>=1.1.0 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from learn2learn) (1.7.0) Requirement already satisfied: torchvision>=0.3.0 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from learn2learn) (0.8.1) Requirement already satisfied: pandas in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from learn2learn) (1.1.0) Requirement already satisfied: requests in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from learn2learn) (2.24.0) Requirement already satisfied: gsutil in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from learn2learn) (4.56) Requirement already satisfied: tqdm in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from learn2learn) (4.51.0) Requirement already satisfied: argcomplete>=1.9.4 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (1.12.2) Requirement already satisfied: six>=1.12.0 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (1.15.0) Requirement already satisfied: mock==2.0.0 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (2.0.0) Requirement already satisfied: google-apitools>=0.5.30 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (0.5.31) Requirement already satisfied: httplib2>=0.18 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (0.18.1) Requirement already satisfied: google-reauth>=0.1.0 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (0.1.1) Requirement already satisfied: retry-decorator>=1.0.0 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (1.1.1) Requirement already satisfied: crcmod>=1.7 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (1.7) Requirement already satisfied: fasteners>=0.14.1 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (0.15) Requirement already satisfied: pyOpenSSL>=0.13 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (20.0.0) Requirement already satisfied: monotonic>=1.4 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (1.5) Requirement already satisfied: gcs-oauth2-boto-plugin>=2.7 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (2.7) Requirement already satisfied: six>=1.12.0 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (1.15.0) Requirement already satisfied: monotonic>=1.4 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (1.5) Requirement already satisfied: six>=1.12.0 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (1.15.0) Requirement already satisfied: oauth2client>=2.2.0 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gcs-oauth2-boto-plugin>=2.7->gsutil->learn2learn) (4.1.3) Requirement already satisfied: boto>=2.29.1 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gcs-oauth2-boto-plugin>=2.7->gsutil->learn2learn) (2.49.0) Requirement already satisfied: httplib2>=0.18 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (0.18.1) Requirement already satisfied: google-reauth>=0.1.0 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (0.1.1) Requirement already satisfied: retry-decorator>=1.0.0 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (1.1.1) Requirement already satisfied: pyOpenSSL>=0.13 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (20.0.0) Requirement already satisfied: httplib2>=0.18 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (0.18.1) Requirement already satisfied: fasteners>=0.14.1 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (0.15) Requirement already satisfied: six>=1.12.0 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (1.15.0) Requirement already satisfied: oauth2client>=2.2.0 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gcs-oauth2-boto-plugin>=2.7->gsutil->learn2learn) (4.1.3) Requirement already satisfied: pyu2f in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from google-reauth>=0.1.0->gsutil->learn2learn) (0.1.5) Requirement already satisfied: pyglet<=1.5.0,>=1.4.0 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gym>=0.14.0->learn2learn) (1.5.0) Requirement already satisfied: numpy>=1.15.4 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from learn2learn) (1.19.4) Requirement already satisfied: cloudpickle<1.7.0,>=1.2.0 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gym>=0.14.0->learn2learn) (1.6.0) Requirement already satisfied: scipy in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gym>=0.14.0->learn2learn) (1.5.3) Requirement already satisfied: pbr>=0.11 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from mock==2.0.0->gsutil->learn2learn) (5.5.1) Requirement already satisfied: six>=1.12.0 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (1.15.0) Requirement already satisfied: pyasn1>=0.1.7 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from oauth2client>=2.2.0->gcs-oauth2-boto-plugin>=2.7->gsutil->learn2learn) (0.4.8) Requirement already satisfied: rsa>=3.1.4 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from oauth2client>=2.2.0->gcs-oauth2-boto-plugin>=2.7->gsutil->learn2learn) (4.6) Requirement already satisfied: httplib2>=0.18 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (0.18.1) Requirement already satisfied: six>=1.12.0 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (1.15.0) Requirement already satisfied: pyasn1-modules>=0.0.5 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from oauth2client>=2.2.0->gcs-oauth2-boto-plugin>=2.7->gsutil->learn2learn) (0.2.8) Requirement already satisfied: python-dateutil>=2.7.3 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from pandas->learn2learn) (2.8.1) Requirement already satisfied: pytz>=2017.2 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from pandas->learn2learn) (2020.1) Requirement already satisfied: numpy>=1.15.4 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from learn2learn) (1.19.4) Requirement already satisfied: pyasn1>=0.1.7 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from oauth2client>=2.2.0->gcs-oauth2-boto-plugin>=2.7->gsutil->learn2learn) (0.4.8) Requirement already satisfied: future in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from pyglet<=1.5.0,>=1.4.0->gym>=0.14.0->learn2learn) (0.18.2) Requirement already satisfied: six>=1.12.0 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (1.15.0) Requirement already satisfied: cryptography>=3.2 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from pyOpenSSL>=0.13->gsutil->learn2learn) (3.2.1) Requirement already satisfied: six>=1.12.0 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (1.15.0) Requirement already satisfied: cffi!=1.11.3,>=1.8 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from cryptography>=3.2->pyOpenSSL>=0.13->gsutil->learn2learn) (1.14.4) Requirement already satisfied: pycparser in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from cffi!=1.11.3,>=1.8->cryptography>=3.2->pyOpenSSL>=0.13->gsutil->learn2learn) (2.20) Requirement already satisfied: six>=1.12.0 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (1.15.0) Requirement already satisfied: six>=1.12.0 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from gsutil->learn2learn) (1.15.0) Requirement already satisfied: chardet<4,>=3.0.2 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from requests->learn2learn) (3.0.4) Requirement already satisfied: idna<3,>=2.5 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from requests->learn2learn) (2.10) Requirement already satisfied: certifi>=2017.4.17 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from requests->learn2learn) (2020.6.20) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from requests->learn2learn) (1.25.10) Requirement already satisfied: pyasn1>=0.1.7 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from oauth2client>=2.2.0->gcs-oauth2-boto-plugin>=2.7->gsutil->learn2learn) (0.4.8) Requirement already satisfied: numpy>=1.15.4 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from learn2learn) (1.19.4) Requirement already satisfied: future in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from pyglet<=1.5.0,>=1.4.0->gym>=0.14.0->learn2learn) (0.18.2) Requirement already satisfied: numpy>=1.15.4 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from learn2learn) (1.19.4) Requirement already satisfied: typing-extensions in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from torch>=1.1.0->learn2learn) (3.7.4.3) Requirement already satisfied: dataclasses in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from torch>=1.1.0->learn2learn) (0.6) Requirement already satisfied: numpy>=1.15.4 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from learn2learn) (1.19.4) Requirement already satisfied: torch>=1.1.0 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from learn2learn) (1.7.0) Requirement already satisfied: pillow>=4.1.1 in /raid/virtualenvs/python3.8/lib/python3.8/site-packages (from torchvision>=0.3.0->learn2learn) (8.0.1) Building wheels for collected packages: learn2learn Building wheel for learn2learn (setup.py) ... error ERROR: Command errored out with exit status 1: command: /raid/virtualenvs/python3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5fj5_4m0/learn2learn_1ee518c0c381463fb2e7cc30f06fa7e0/setup.py'"'"'; file='"'"'/tmp/pip-install-5fj5_4m0/learn2learn_1ee518c0c381463fb2e7cc30f06fa7e0/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-5uzah4qx cwd: /tmp/pip-install-5fj5_4m0/learn2learn_1ee518c0c381463fb2e7cc30f06fa7e0/ Complete output (131 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/tests copying tests/init.py -> build/lib.linux-x86_64-3.8/tests creating build/lib.linux-x86_64-3.8/learn2learn copying learn2learn/utils.py -> build/lib.linux-x86_64-3.8/learn2learn copying learn2learn/_version.py -> build/lib.linux-x86_64-3.8/learn2learn copying learn2learn/init.py -> build/lib.linux-x86_64-3.8/learn2learn creating build/lib.linux-x86_64-3.8/tests/unit copying tests/unit/utils_test.py -> build/lib.linux-x86_64-3.8/tests/unit copying tests/unit/init.py -> build/lib.linux-x86_64-3.8/tests/unit creating build/lib.linux-x86_64-3.8/tests/integration copying tests/integration/protonets_miniimagenet_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/integration copying tests/integration/maml_miniimagenet_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/integration copying tests/integration/maml_omniglot_test.py -> build/lib.linux-x86_64-3.8/tests/integration copying tests/integration/init.py -> build/lib.linux-x86_64-3.8/tests/integration creating build/lib.linux-x86_64-3.8/tests/unit/algorithms copying tests/unit/algorithms/maml_test.py -> build/lib.linux-x86_64-3.8/tests/unit/algorithms copying tests/unit/algorithms/gbml_test.py -> build/lib.linux-x86_64-3.8/tests/unit/algorithms copying tests/unit/algorithms/metasgd_test.py -> build/lib.linux-x86_64-3.8/tests/unit/algorithms copying tests/unit/algorithms/init.py -> build/lib.linux-x86_64-3.8/tests/unit/algorithms creating build/lib.linux-x86_64-3.8/tests/unit/data copying tests/unit/data/metadataset_test.py -> build/lib.linux-x86_64-3.8/tests/unit/data copying tests/unit/data/util_datasets.py -> build/lib.linux-x86_64-3.8/tests/unit/data copying tests/unit/data/transforms_test.py -> build/lib.linux-x86_64-3.8/tests/unit/data copying tests/unit/data/task_dataset_test.py -> build/lib.linux-x86_64-3.8/tests/unit/data copying tests/unit/data/init.py -> build/lib.linux-x86_64-3.8/tests/unit/data creating build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/tiered_imagenet_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/describable_textures_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/benchmarks_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/vgg_flowers_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/cifarfs_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/cu_birds200_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/fc100_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/quickdraw_test_no.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/fgvc_aircraft_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/init.py -> build/lib.linux-x86_64-3.8/tests/unit/vision creating build/lib.linux-x86_64-3.8/learn2learn/nn copying learn2learn/nn/misc.py -> build/lib.linux-x86_64-3.8/learn2learn/nn copying learn2learn/nn/kroneckers.py -> build/lib.linux-x86_64-3.8/learn2learn/nn copying learn2learn/nn/init.py -> build/lib.linux-x86_64-3.8/learn2learn/nn creating build/lib.linux-x86_64-3.8/learn2learn/algorithms copying learn2learn/algorithms/meta_sgd.py -> build/lib.linux-x86_64-3.8/learn2learn/algorithms copying learn2learn/algorithms/maml.py -> build/lib.linux-x86_64-3.8/learn2learn/algorithms copying learn2learn/algorithms/gbml.py -> build/lib.linux-x86_64-3.8/learn2learn/algorithms copying learn2learn/algorithms/base_learner.py -> build/lib.linux-x86_64-3.8/learn2learn/algorithms copying learn2learn/algorithms/init.py -> build/lib.linux-x86_64-3.8/learn2learn/algorithms creating build/lib.linux-x86_64-3.8/learn2learn/gym copying learn2learn/gym/init.py -> build/lib.linux-x86_64-3.8/learn2learn/gym copying learn2learn/gym/async_vec_env.py -> build/lib.linux-x86_64-3.8/learn2learn/gym creating build/lib.linux-x86_64-3.8/learn2learn/data copying learn2learn/data/utils.py -> build/lib.linux-x86_64-3.8/learn2learn/data copying learn2learn/data/init.py -> build/lib.linux-x86_64-3.8/learn2learn/data creating build/lib.linux-x86_64-3.8/learn2learn/text copying learn2learn/text/init.py -> build/lib.linux-x86_64-3.8/learn2learn/text creating build/lib.linux-x86_64-3.8/learn2learn/optim copying learn2learn/optim/learnable_optimizer.py -> build/lib.linux-x86_64-3.8/learn2learn/optim copying learn2learn/optim/parameter_update.py -> build/lib.linux-x86_64-3.8/learn2learn/optim copying learn2learn/optim/init.py -> build/lib.linux-x86_64-3.8/learn2learn/optim creating build/lib.linux-x86_64-3.8/learn2learn/vision copying learn2learn/vision/transforms.py -> build/lib.linux-x86_64-3.8/learn2learn/vision copying learn2learn/vision/init.py -> build/lib.linux-x86_64-3.8/learn2learn/vision creating build/lib.linux-x86_64-3.8/learn2learn/gym/envs copying learn2learn/gym/envs/meta_env.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs copying learn2learn/gym/envs/subproc_vec_env.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs copying learn2learn/gym/envs/init.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs creating build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/ant_forward_backward.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/ant_direction.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/halfcheetah_forward_backward.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/humanoid_forward_backward.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/dummy_mujoco_env.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/init.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/humanoid_direction.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco creating build/lib.linux-x86_64-3.8/learn2learn/gym/envs/metaworld copying learn2learn/gym/envs/metaworld/metaworld.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/metaworld copying learn2learn/gym/envs/metaworld/init.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/metaworld creating build/lib.linux-x86_64-3.8/learn2learn/gym/envs/particles copying learn2learn/gym/envs/particles/particles_2d.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/particles copying learn2learn/gym/envs/particles/init.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/particles creating build/lib.linux-x86_64-3.8/learn2learn/text/datasets copying learn2learn/text/datasets/news_classification.py -> build/lib.linux-x86_64-3.8/learn2learn/text/datasets copying learn2learn/text/datasets/init.py -> build/lib.linux-x86_64-3.8/learn2learn/text/datasets creating build/lib.linux-x86_64-3.8/learn2learn/optim/update_rules copying learn2learn/optim/update_rules/differentiable_sgd.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/update_rules copying learn2learn/optim/update_rules/init.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/update_rules creating build/lib.linux-x86_64-3.8/learn2learn/optim/transforms copying learn2learn/optim/transforms/module_transform.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/transforms copying learn2learn/optim/transforms/kronecker_transform.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/transforms copying learn2learn/optim/transforms/metacurvature_transform.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/transforms copying learn2learn/optim/transforms/init.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/transforms copying learn2learn/optim/transforms/transform_dictionary.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/transforms creating build/lib.linux-x86_64-3.8/learn2learn/vision/models copying learn2learn/vision/models/resnet12.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/models copying learn2learn/vision/models/cnn4.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/models copying learn2learn/vision/models/init.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/models creating build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks copying learn2learn/vision/benchmarks/tiered_imagenet_benchmark.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks copying learn2learn/vision/benchmarks/cifarfs_benchmark.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks copying learn2learn/vision/benchmarks/mini_imagenet_benchmark.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks copying learn2learn/vision/benchmarks/omniglot_benchmark.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks copying learn2learn/vision/benchmarks/fc100_benchmark.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks copying learn2learn/vision/benchmarks/init.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks creating build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/fgvc_fungi.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/cifarfs.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/vgg_flowers.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/cu_birds200.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/mini_imagenet.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/tiered_imagenet.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/full_omniglot.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/describable_textures.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/quickdraw.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/fgvc_aircraft.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/init.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/fc100.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets running build_ext building 'learn2learn.data.meta_dataset' extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/learn2learn creating build/temp.linux-x86_64-3.8/learn2learn/data x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -I/raid/virtualenvs/python3.8/include/python3.8 -c learn2learn/data/meta_dataset.c -o build/temp.linux-x86_64-3.8/learn2learn/data/meta_dataset.o learn2learn/data/meta_dataset.c:16:10: fatal error: Python.h: No such file or directory
include "Python.h"
compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
ERROR: Failed building wheel for learn2learn Running setup.py clean for learn2learn Failed to build learn2learn Installing collected packages: learn2learn Running setup.py install for learn2learn ... error ERROR: Command errored out with exit status 1: command: /raid/virtualenvs/python3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5fj5_4m0/learn2learn_1ee518c0c381463fb2e7cc30f06fa7e0/setup.py'"'"'; file='"'"'/tmp/pip-install-5fj5_4m0/learn2learn_1ee518c0c381463fb2e7cc30f06fa7e0/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-1zaygl0c/install-record.txt --single-version-externally-managed --compile --install-headers /raid/virtualenvs/python3.8/include/site/python3.8/learn2learn cwd: /tmp/pip-install-5fj5_4m0/learn2learn_1ee518c0c381463fb2e7cc30f06fa7e0/ Complete output (131 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/tests copying tests/init.py -> build/lib.linux-x86_64-3.8/tests creating build/lib.linux-x86_64-3.8/learn2learn copying learn2learn/utils.py -> build/lib.linux-x86_64-3.8/learn2learn copying learn2learn/_version.py -> build/lib.linux-x86_64-3.8/learn2learn copying learn2learn/init.py -> build/lib.linux-x86_64-3.8/learn2learn creating build/lib.linux-x86_64-3.8/tests/unit copying tests/unit/utils_test.py -> build/lib.linux-x86_64-3.8/tests/unit copying tests/unit/init.py -> build/lib.linux-x86_64-3.8/tests/unit creating build/lib.linux-x86_64-3.8/tests/integration copying tests/integration/protonets_miniimagenet_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/integration copying tests/integration/maml_miniimagenet_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/integration copying tests/integration/maml_omniglot_test.py -> build/lib.linux-x86_64-3.8/tests/integration copying tests/integration/init.py -> build/lib.linux-x86_64-3.8/tests/integration creating build/lib.linux-x86_64-3.8/tests/unit/algorithms copying tests/unit/algorithms/maml_test.py -> build/lib.linux-x86_64-3.8/tests/unit/algorithms copying tests/unit/algorithms/gbml_test.py -> build/lib.linux-x86_64-3.8/tests/unit/algorithms copying tests/unit/algorithms/metasgd_test.py -> build/lib.linux-x86_64-3.8/tests/unit/algorithms copying tests/unit/algorithms/init.py -> build/lib.linux-x86_64-3.8/tests/unit/algorithms creating build/lib.linux-x86_64-3.8/tests/unit/data copying tests/unit/data/metadataset_test.py -> build/lib.linux-x86_64-3.8/tests/unit/data copying tests/unit/data/util_datasets.py -> build/lib.linux-x86_64-3.8/tests/unit/data copying tests/unit/data/transforms_test.py -> build/lib.linux-x86_64-3.8/tests/unit/data copying tests/unit/data/task_dataset_test.py -> build/lib.linux-x86_64-3.8/tests/unit/data copying tests/unit/data/init.py -> build/lib.linux-x86_64-3.8/tests/unit/data creating build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/tiered_imagenet_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/describable_textures_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/benchmarks_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/vgg_flowers_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/cifarfs_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/cu_birds200_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/fc100_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/quickdraw_test_no.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/fgvc_aircraft_test_notravis.py -> build/lib.linux-x86_64-3.8/tests/unit/vision copying tests/unit/vision/init.py -> build/lib.linux-x86_64-3.8/tests/unit/vision creating build/lib.linux-x86_64-3.8/learn2learn/nn copying learn2learn/nn/misc.py -> build/lib.linux-x86_64-3.8/learn2learn/nn copying learn2learn/nn/kroneckers.py -> build/lib.linux-x86_64-3.8/learn2learn/nn copying learn2learn/nn/init.py -> build/lib.linux-x86_64-3.8/learn2learn/nn creating build/lib.linux-x86_64-3.8/learn2learn/algorithms copying learn2learn/algorithms/meta_sgd.py -> build/lib.linux-x86_64-3.8/learn2learn/algorithms copying learn2learn/algorithms/maml.py -> build/lib.linux-x86_64-3.8/learn2learn/algorithms copying learn2learn/algorithms/gbml.py -> build/lib.linux-x86_64-3.8/learn2learn/algorithms copying learn2learn/algorithms/base_learner.py -> build/lib.linux-x86_64-3.8/learn2learn/algorithms copying learn2learn/algorithms/init.py -> build/lib.linux-x86_64-3.8/learn2learn/algorithms creating build/lib.linux-x86_64-3.8/learn2learn/gym copying learn2learn/gym/init.py -> build/lib.linux-x86_64-3.8/learn2learn/gym copying learn2learn/gym/async_vec_env.py -> build/lib.linux-x86_64-3.8/learn2learn/gym creating build/lib.linux-x86_64-3.8/learn2learn/data copying learn2learn/data/utils.py -> build/lib.linux-x86_64-3.8/learn2learn/data copying learn2learn/data/init.py -> build/lib.linux-x86_64-3.8/learn2learn/data creating build/lib.linux-x86_64-3.8/learn2learn/text copying learn2learn/text/init.py -> build/lib.linux-x86_64-3.8/learn2learn/text creating build/lib.linux-x86_64-3.8/learn2learn/optim copying learn2learn/optim/learnable_optimizer.py -> build/lib.linux-x86_64-3.8/learn2learn/optim copying learn2learn/optim/parameter_update.py -> build/lib.linux-x86_64-3.8/learn2learn/optim copying learn2learn/optim/init.py -> build/lib.linux-x86_64-3.8/learn2learn/optim creating build/lib.linux-x86_64-3.8/learn2learn/vision copying learn2learn/vision/transforms.py -> build/lib.linux-x86_64-3.8/learn2learn/vision copying learn2learn/vision/init.py -> build/lib.linux-x86_64-3.8/learn2learn/vision creating build/lib.linux-x86_64-3.8/learn2learn/gym/envs copying learn2learn/gym/envs/meta_env.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs copying learn2learn/gym/envs/subproc_vec_env.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs copying learn2learn/gym/envs/init.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs creating build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/ant_forward_backward.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/ant_direction.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/halfcheetah_forward_backward.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/humanoid_forward_backward.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/dummy_mujoco_env.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/init.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco copying learn2learn/gym/envs/mujoco/humanoid_direction.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/mujoco creating build/lib.linux-x86_64-3.8/learn2learn/gym/envs/metaworld copying learn2learn/gym/envs/metaworld/metaworld.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/metaworld copying learn2learn/gym/envs/metaworld/init.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/metaworld creating build/lib.linux-x86_64-3.8/learn2learn/gym/envs/particles copying learn2learn/gym/envs/particles/particles_2d.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/particles copying learn2learn/gym/envs/particles/init.py -> build/lib.linux-x86_64-3.8/learn2learn/gym/envs/particles creating build/lib.linux-x86_64-3.8/learn2learn/text/datasets copying learn2learn/text/datasets/news_classification.py -> build/lib.linux-x86_64-3.8/learn2learn/text/datasets copying learn2learn/text/datasets/init.py -> build/lib.linux-x86_64-3.8/learn2learn/text/datasets creating build/lib.linux-x86_64-3.8/learn2learn/optim/update_rules copying learn2learn/optim/update_rules/differentiable_sgd.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/update_rules copying learn2learn/optim/update_rules/init.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/update_rules creating build/lib.linux-x86_64-3.8/learn2learn/optim/transforms copying learn2learn/optim/transforms/module_transform.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/transforms copying learn2learn/optim/transforms/kronecker_transform.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/transforms copying learn2learn/optim/transforms/metacurvature_transform.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/transforms copying learn2learn/optim/transforms/init.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/transforms copying learn2learn/optim/transforms/transform_dictionary.py -> build/lib.linux-x86_64-3.8/learn2learn/optim/transforms creating build/lib.linux-x86_64-3.8/learn2learn/vision/models copying learn2learn/vision/models/resnet12.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/models copying learn2learn/vision/models/cnn4.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/models copying learn2learn/vision/models/init.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/models creating build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks copying learn2learn/vision/benchmarks/tiered_imagenet_benchmark.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks copying learn2learn/vision/benchmarks/cifarfs_benchmark.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks copying learn2learn/vision/benchmarks/mini_imagenet_benchmark.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks copying learn2learn/vision/benchmarks/omniglot_benchmark.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks copying learn2learn/vision/benchmarks/fc100_benchmark.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks copying learn2learn/vision/benchmarks/init.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/benchmarks creating build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/fgvc_fungi.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/cifarfs.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/vgg_flowers.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/cu_birds200.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/mini_imagenet.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/tiered_imagenet.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/full_omniglot.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/describable_textures.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/quickdraw.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/fgvc_aircraft.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/init.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets copying learn2learn/vision/datasets/fc100.py -> build/lib.linux-x86_64-3.8/learn2learn/vision/datasets running build_ext building 'learn2learn.data.meta_dataset' extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/learn2learn creating build/temp.linux-x86_64-3.8/learn2learn/data x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -I/raid/virtualenvs/python3.8/include/python3.8 -c learn2learn/data/meta_dataset.c -o build/temp.linux-x86_64-3.8/learn2learn/data/meta_dataset.o learn2learn/data/meta_dataset.c:16:10: fatal error: Python.h: No such file or directory
include "Python.h"
ERROR: Command errored out with exit status 1: /raid/virtualenvs/python3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5fj5_4m0/learn2learn_1ee518c0c381463fb2e7cc30f06fa7e0/setup.py'"'"'; file='"'"'/tmp/pip-install-5fj5_4m0/learn2learn_1ee518c0c381463fb2e7cc30f06fa7e0/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-1zaygl0c/install-record.txt --single-version-externally-managed --compile --install-headers /raid/virtualenvs/python3.8/include/site/python3.8/learn2learn Check the logs for full command output.