Я пытаюсь установить библиотеку Alphatrade на платформу Mac Book Ubuntu.
Я пробовал установить protlib отдельно, но ошибка все та же.
Я хочу, чтобы эта ошибка исчезла и библиотеки были установлены без каких-либо проблем.
pip3 install Alphatrade
Код: Выделить всё
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