How to resolve the error 'Failed to build 'protlib' when getting requirements to build wheel'

15 hours ago 1
ARTICLE AD BOX

Upon trying install a library, i am getting this error. How to resolve this?

I am trying to install the library alphatrade in mac book ubuntu platform.

I have tried installing protlib separately, but the error still the same.

I want this error to go off and the libraries to be installed without any issue.

pip3 install alphatrade Defaulting to user installation because normal site-packages is not writeable Collecting alphatrade Using cached alphatrade-1.0.0-py2.py3-none-any.whl.metadata (33 kB) Requirement already satisfied: setuptools==57.5.0 in ./Library/Python/3.9/lib/python/site-packages (from alphatrade) (57.5.0) Requirement already satisfied: requests in ./Library/Python/3.9/lib/python/site-packages (from alphatrade) (2.32.5) Collecting websocket-client (from alphatrade) Using cached websocket_client-1.9.0-py3-none-any.whl.metadata (8.3 kB) Collecting protlib (from alphatrade) Using cached protlib-1.5.0.tar.gz (32 kB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [3 lines of output] /private/var/folders/2c/9v8sqr9j707fzj2cwg5x3vt80000gn/T/pip-build-env-6asmw55n/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py:287: UserWarning: Unknown distribution option: 'test_suite' warnings.warn(msg) error in protlib setup command: use_2to3 is invalid. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed to build 'protlib' when getting requirements to build wheel
Read Entire Article