Cannot intall aicrowd-cli on Ubuntu 20.04 LTS (WSL)
Build fails due to "ERROR: Could not build wheels for pyzmq, which is required to install pyproject.toml-based projects".
Currently using Ubuntu 20.04 LTS on WSL. I tried reinstalling Ubuntu and using different versions and it still did not work.
Full error log below: Collecting aicrowd-cli Using cached aicrowd_cli-0.1.15-py3-none-any.whl (51 kB) Collecting semver<3,>=2.13.0 Using cached semver-2.13.0-py2.py3-none-any.whl (12 kB) Collecting GitPython==3.1.18 Using cached GitPython-3.1.18-py3-none-any.whl (170 kB) Collecting requests-toolbelt<1,>=0.9.1 Using cached requests_toolbelt-0.10.1-py2.py3-none-any.whl (54 kB) Collecting pyzmq==22.1.0 Using cached pyzmq-22.1.0.tar.gz (1.2 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: toml<1,>=0.10.2 in /home/crlandsc/anaconda3/envs/bsrnn/lib/python3.10/site-packages (from aicrowd-cli) (0.10.2) Requirement already satisfied: requests<3,>=2.25.1 in /home/crlandsc/anaconda3/envs/bsrnn/lib/python3.10/site-packages (from aicrowd-cli) (2.28.2) Collecting click<8,>=7.1.2 Using cached click-7.1.2-py2.py3-none-any.whl (82 kB) Requirement already satisfied: tqdm<5,>=4.56.0 in /home/crlandsc/anaconda3/envs/bsrnn/lib/python3.10/site-packages (from aicrowd-cli) (4.64.1) Collecting rich<11,>=10.0.0 Using cached rich-10.16.2-py3-none-any.whl (214 kB) Collecting python-slugify<6,>=5.0.0 Using cached python_slugify-5.0.2-py2.py3-none-any.whl (6.7 kB) Requirement already satisfied: gitdb<5,>=4.0.1 in /home/crlandsc/anaconda3/envs/bsrnn/lib/python3.10/site-packages (from GitPython==3.1.18->aicrowd-cli) (4.0.10) Collecting text-unidecode>=1.3 Using cached text_unidecode-1.3-py2.py3-none-any.whl (78 kB) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/crlandsc/anaconda3/envs/bsrnn/lib/python3.10/site-packages (from requests<3,>=2.25.1->aicrowd-cli) (1.26.15) Requirement already satisfied: charset-normalizer<4,>=2 in /home/crlandsc/anaconda3/envs/bsrnn/lib/python3.10/site-packages (from requests<3,>=2.25.1->aicrowd-cli) (3.1.0) Requirement already satisfied: certifi>=2017.4.17 in /home/crlandsc/anaconda3/envs/bsrnn/lib/python3.10/site-packages (from requests<3,>=2.25.1->aicrowd-cli) (2022.12.7) Requirement already satisfied: idna<4,>=2.5 in /home/crlandsc/anaconda3/envs/bsrnn/lib/python3.10/site-packages (from requests<3,>=2.25.1->aicrowd-cli) (3.4) Collecting colorama<0.5.0,>=0.4.0 Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB) Collecting commonmark<0.10.0,>=0.9.0 Using cached commonmark-0.9.1-py2.py3-none-any.whl (51 kB) Requirement already satisfied: pygments<3.0.0,>=2.6.0 in /home/crlandsc/anaconda3/envs/bsrnn/lib/python3.10/site-packages (from rich<11,>=10.0.0->aicrowd-cli) (2.15.0) Requirement already satisfied: smmap<6,>=3.0.1 in /home/crlandsc/anaconda3/envs/bsrnn/lib/python3.10/site-packages (from gitdb<5,>=4.0.1->GitPython==3.1.18->aicrowd-cli) (5.0.0) Building wheels for collected packages: pyzmq Building wheel for pyzmq (pyproject.toml) ... error error: subprocess-exited-with-error
× Building wheel for pyzmq (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [178 lines of output] /tmp/pip-build-env-a5gtn4e0/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py:265: UserWarning: Unknown distribution option: 'cffi_modules' warnings.warn(msg) running bdist_wheel running build running build_py copying zmq/error.py -> build/lib.linux-x86_64-cpython-310/zmq copying zmq/init.py -> build/lib.linux-x86_64-cpython-310/zmq copying zmq/asyncio.py -> build/lib.linux-x86_64-cpython-310/zmq copying zmq/_future.py -> build/lib.linux-x86_64-cpython-310/zmq copying zmq/decorators.py -> build/lib.linux-x86_64-cpython-310/zmq creating build/lib.linux-x86_64-cpython-310/zmq/backend copying zmq/backend/select.py -> build/lib.linux-x86_64-cpython-310/zmq/backend copying zmq/backend/init.py -> build/lib.linux-x86_64-cpython-310/zmq/backend creating build/lib.linux-x86_64-cpython-310/zmq/backend/cython copying zmq/backend/cython/init.py -> build/lib.linux-x86_64-cpython-310/zmq/backend/cython creating build/lib.linux-x86_64-cpython-310/zmq/backend/cffi copying zmq/backend/cffi/message.py -> build/lib.linux-x86_64-cpython-310/zmq/backend/cffi copying zmq/backend/cffi/utils.py -> build/lib.linux-x86_64-cpython-310/zmq/backend/cffi copying zmq/backend/cffi/socket.py -> build/lib.linux-x86_64-cpython-310/zmq/backend/cffi copying zmq/backend/cffi/error.py -> build/lib.linux-x86_64-cpython-310/zmq/backend/cffi copying zmq/backend/cffi/init.py -> build/lib.linux-x86_64-cpython-310/zmq/backend/cffi copying zmq/backend/cffi/_poll.py -> build/lib.linux-x86_64-cpython-310/zmq/backend/cffi copying zmq/backend/cffi/constants.py -> build/lib.linux-x86_64-cpython-310/zmq/backend/cffi copying zmq/backend/cffi/context.py -> build/lib.linux-x86_64-cpython-310/zmq/backend/cffi copying zmq/backend/cffi/devices.py -> build/lib.linux-x86_64-cpython-310/zmq/backend/cffi creating build/lib.linux-x86_64-cpython-310/zmq/utils copying zmq/utils/interop.py -> build/lib.linux-x86_64-cpython-310/zmq/utils copying zmq/utils/init.py -> build/lib.linux-x86_64-cpython-310/zmq/utils copying zmq/utils/monitor.py -> build/lib.linux-x86_64-cpython-310/zmq/utils copying zmq/utils/constant_names.py -> build/lib.linux-x86_64-cpython-310/zmq/utils copying zmq/utils/strtypes.py -> build/lib.linux-x86_64-cpython-310/zmq/utils copying zmq/utils/garbage.py -> build/lib.linux-x86_64-cpython-310/zmq/utils copying zmq/utils/win32.py -> build/lib.linux-x86_64-cpython-310/zmq/utils copying zmq/utils/jsonapi.py -> build/lib.linux-x86_64-cpython-310/zmq/utils copying zmq/utils/z85.py -> build/lib.linux-x86_64-cpython-310/zmq/utils creating build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_draft.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_asyncio.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_log.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_mypy.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_etc.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_ioloop.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_zmqstream.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_z85.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_cffi_backend.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_security.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_multipart.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_cython.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_poll.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_pubsub.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_monitor.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/init.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/conftest.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_ssh.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_imports.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_win32_shim.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_device.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_context.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_reqrep.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_includes.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_auth.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_constants.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_version.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_pair.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_future.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_error.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_socket.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_decorators.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_message.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_monqueue.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_proxy_steerable.py -> build/lib.linux-x86_64-cpython-310/zmq/tests copying zmq/tests/test_retry_eintr.py -> build/lib.linux-x86_64-cpython-310/zmq/tests creating build/lib.linux-x86_64-cpython-310/zmq/green copying zmq/green/init.py -> build/lib.linux-x86_64-cpython-310/zmq/green copying zmq/green/poll.py -> build/lib.linux-x86_64-cpython-310/zmq/green copying zmq/green/device.py -> build/lib.linux-x86_64-cpython-310/zmq/green copying zmq/green/core.py -> build/lib.linux-x86_64-cpython-310/zmq/green creating build/lib.linux-x86_64-cpython-310/zmq/green/eventloop copying zmq/green/eventloop/init.py -> build/lib.linux-x86_64-cpython-310/zmq/green/eventloop copying zmq/green/eventloop/ioloop.py -> build/lib.linux-x86_64-cpython-310/zmq/green/eventloop copying zmq/green/eventloop/zmqstream.py -> build/lib.linux-x86_64-cpython-310/zmq/green/eventloop creating build/lib.linux-x86_64-cpython-310/zmq/log copying zmq/log/handlers.py -> build/lib.linux-x86_64-cpython-310/zmq/log copying zmq/log/init.py -> build/lib.linux-x86_64-cpython-310/zmq/log copying zmq/log/main.py -> build/lib.linux-x86_64-cpython-310/zmq/log creating build/lib.linux-x86_64-cpython-310/zmq/devices copying zmq/devices/monitoredqueuedevice.py -> build/lib.linux-x86_64-cpython-310/zmq/devices copying zmq/devices/init.py -> build/lib.linux-x86_64-cpython-310/zmq/devices copying zmq/devices/basedevice.py -> build/lib.linux-x86_64-cpython-310/zmq/devices copying zmq/devices/proxydevice.py -> build/lib.linux-x86_64-cpython-310/zmq/devices copying zmq/devices/proxysteerabledevice.py -> build/lib.linux-x86_64-cpython-310/zmq/devices copying zmq/devices/monitoredqueue.py -> build/lib.linux-x86_64-cpython-310/zmq/devices creating build/lib.linux-x86_64-cpython-310/zmq/eventloop copying zmq/eventloop/_deprecated.py -> build/lib.linux-x86_64-cpython-310/zmq/eventloop copying zmq/eventloop/init.py -> build/lib.linux-x86_64-cpython-310/zmq/eventloop copying zmq/eventloop/ioloop.py -> build/lib.linux-x86_64-cpython-310/zmq/eventloop copying zmq/eventloop/zmqstream.py -> build/lib.linux-x86_64-cpython-310/zmq/eventloop copying zmq/eventloop/future.py -> build/lib.linux-x86_64-cpython-310/zmq/eventloop creating build/lib.linux-x86_64-cpython-310/zmq/eventloop/minitornado copying zmq/eventloop/minitornado/stack_context.py -> build/lib.linux-x86_64-cpython-310/zmq/eventloop/minitornado copying zmq/eventloop/minitornado/init.py -> build/lib.linux-x86_64-cpython-310/zmq/eventloop/minitornado copying zmq/eventloop/minitornado/util.py -> build/lib.linux-x86_64-cpython-310/zmq/eventloop/minitornado copying zmq/eventloop/minitornado/ioloop.py -> build/lib.linux-x86_64-cpython-310/zmq/eventloop/minitornado copying zmq/eventloop/minitornado/concurrent.py -> build/lib.linux-x86_64-cpython-310/zmq/eventloop/minitornado copying zmq/eventloop/minitornado/log.py -> build/lib.linux-x86_64-cpython-310/zmq/eventloop/minitornado creating build/lib.linux-x86_64-cpython-310/zmq/eventloop/minitornado/platform copying zmq/eventloop/minitornado/platform/auto.py -> build/lib.linux-x86_64-cpython-310/zmq/eventloop/minitornado/platform copying zmq/eventloop/minitornado/platform/common.py -> build/lib.linux-x86_64-cpython-310/zmq/eventloop/minitornado/platform copying zmq/eventloop/minitornado/platform/init.py -> build/lib.linux-x86_64-cpython-310/zmq/eventloop/minitornado/platform copying zmq/eventloop/minitornado/platform/posix.py -> build/lib.linux-x86_64-cpython-310/zmq/eventloop/minitornado/platform copying zmq/eventloop/minitornado/platform/windows.py -> build/lib.linux-x86_64-cpython-310/zmq/eventloop/minitornado/platform copying zmq/eventloop/minitornado/platform/interface.py -> build/lib.linux-x86_64-cpython-310/zmq/eventloop/minitornado/platform creating build/lib.linux-x86_64-cpython-310/zmq/auth copying zmq/auth/thread.py -> build/lib.linux-x86_64-cpython-310/zmq/auth copying zmq/auth/base.py -> build/lib.linux-x86_64-cpython-310/zmq/auth copying zmq/auth/init.py -> build/lib.linux-x86_64-cpython-310/zmq/auth copying zmq/auth/asyncio.py -> build/lib.linux-x86_64-cpython-310/zmq/auth copying zmq/auth/ioloop.py -> build/lib.linux-x86_64-cpython-310/zmq/auth copying zmq/auth/certs.py -> build/lib.linux-x86_64-cpython-310/zmq/auth creating build/lib.linux-x86_64-cpython-310/zmq/sugar copying zmq/sugar/version.py -> build/lib.linux-x86_64-cpython-310/zmq/sugar copying zmq/sugar/attrsettr.py -> build/lib.linux-x86_64-cpython-310/zmq/sugar copying zmq/sugar/frame.py -> build/lib.linux-x86_64-cpython-310/zmq/sugar copying zmq/sugar/stopwatch.py -> build/lib.linux-x86_64-cpython-310/zmq/sugar copying zmq/sugar/socket.py -> build/lib.linux-x86_64-cpython-310/zmq/sugar copying zmq/sugar/init.py -> build/lib.linux-x86_64-cpython-310/zmq/sugar copying zmq/sugar/tracker.py -> build/lib.linux-x86_64-cpython-310/zmq/sugar copying zmq/sugar/poll.py -> build/lib.linux-x86_64-cpython-310/zmq/sugar copying zmq/sugar/constants.py -> build/lib.linux-x86_64-cpython-310/zmq/sugar copying zmq/sugar/context.py -> build/lib.linux-x86_64-cpython-310/zmq/sugar creating build/lib.linux-x86_64-cpython-310/zmq/ssh copying zmq/ssh/forward.py -> build/lib.linux-x86_64-cpython-310/zmq/ssh copying zmq/ssh/init.py -> build/lib.linux-x86_64-cpython-310/zmq/ssh copying zmq/ssh/tunnel.py -> build/lib.linux-x86_64-cpython-310/zmq/ssh copying zmq/init.pxd -> build/lib.linux-x86_64-cpython-310/zmq copying zmq/init.pyi -> build/lib.linux-x86_64-cpython-310/zmq copying zmq/py.typed -> build/lib.linux-x86_64-cpython-310/zmq copying zmq/backend/init.pyi -> build/lib.linux-x86_64-cpython-310/zmq/backend copying zmq/backend/constants.pyi -> build/lib.linux-x86_64-cpython-310/zmq/backend copying zmq/backend/cython/socket.pxd -> build/lib.linux-x86_64-cpython-310/zmq/backend/cython copying zmq/backend/cython/libzmq.pxd -> build/lib.linux-x86_64-cpython-310/zmq/backend/cython copying zmq/backend/cython/init.pxd -> build/lib.linux-x86_64-cpython-310/zmq/backend/cython copying zmq/backend/cython/checkrc.pxd -> build/lib.linux-x86_64-cpython-310/zmq/backend/cython copying zmq/backend/cython/message.pxd -> build/lib.linux-x86_64-cpython-310/zmq/backend/cython copying zmq/backend/cython/context.pxd -> build/lib.linux-x86_64-cpython-310/zmq/backend/cython copying zmq/backend/cython/constants.pxi -> build/lib.linux-x86_64-cpython-310/zmq/backend/cython copying zmq/backend/cython/constant_enums.pxi -> build/lib.linux-x86_64-cpython-310/zmq/backend/cython copying zmq/backend/cffi/_cdefs.h -> build/lib.linux-x86_64-cpython-310/zmq/backend/cffi copying zmq/utils/buffers.pxd -> build/lib.linux-x86_64-cpython-310/zmq/utils copying zmq/utils/pyversion_compat.h -> build/lib.linux-x86_64-cpython-310/zmq/utils copying zmq/utils/zmq_compat.h -> build/lib.linux-x86_64-cpython-310/zmq/utils copying zmq/utils/zmq_constants.h -> build/lib.linux-x86_64-cpython-310/zmq/utils copying zmq/utils/getpid_compat.h -> build/lib.linux-x86_64-cpython-310/zmq/utils copying zmq/utils/ipcmaxlen.h -> build/lib.linux-x86_64-cpython-310/zmq/utils copying zmq/utils/mutex.h -> build/lib.linux-x86_64-cpython-310/zmq/utils copying zmq/utils/config.json -> build/lib.linux-x86_64-cpython-310/zmq/utils copying zmq/utils/compiler.json -> build/lib.linux-x86_64-cpython-310/zmq/utils copying zmq/devices/monitoredqueue.pxd -> build/lib.linux-x86_64-cpython-310/zmq/devices copying zmq/sugar/init.pyi -> build/lib.linux-x86_64-cpython-310/zmq/sugar copying zmq/sugar/constants.pyi -> build/lib.linux-x86_64-cpython-310/zmq/sugar running build_ext running configure Using bundled libzmq already have bundled/zeromq already have platform.hpp checking for timer_create gcc -pthread -B /home/crlandsc/anaconda3/envs/bsrnn/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/crlandsc/anaconda3/envs/bsrnn/include -fPIC -O2 -isystem /home/crlandsc/anaconda3/envs/bsrnn/include -fPIC -c /tmp/timer_createilfi7bc3.c -o build/temp.linux-x86_64-cpython-310/tmp/timer_createilfi7bc3.o no timer_create, linking librt building 'zmq.libzmq' extension creating build/temp.linux-x86_64-cpython-310/buildutils creating build/temp.linux-x86_64-cpython-310/bundled creating build/temp.linux-x86_64-cpython-310/bundled/zeromq creating build/temp.linux-x86_64-cpython-310/bundled/zeromq/src g++ -pthread -B /home/crlandsc/anaconda3/envs/bsrnn/compiler_compat -std=c++11 -pthread -B /home/crlandsc/anaconda3/envs/bsrnn/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/crlandsc/anaconda3/envs/bsrnn/include -fPIC -O2 -isystem /home/crlandsc/anaconda3/envs/bsrnn/include -fPIC -DZMQ_HAVE_CURVE=1 -DZMQ_USE_TWEETNACL=1 -DZMQ_USE_EPOLL=1 -DZMQ_IOTHREADS_USE_EPOLL=1 -DZMQ_POLL_BASED_ON_POLL=1 -Ibundled/zeromq/include -Ibundled -I/home/crlandsc/anaconda3/envs/bsrnn/include/python3.10 -c buildutils/initlibzmq.cpp -o build/temp.linux-x86_64-cpython-310/buildutils/initlibzmq.o ************************************************ ************************************************ ************************************************ error: command 'g++' failed: No such file or directory [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pyzmq Failed to build pyzmq ERROR: Could not build wheels for pyzmq, which is required to install pyproject.toml-based projects