Since pip 23.1, using pip in the system is disabled by defaut to prevent breaking system packages by overwriting dependencies. To avoid this, you can use a virtual environment (python3 -m venv env), ...
from unicorn_binance_websocket_api import BinanceWebSocketApiManager ubwa = BinanceWebSocketApiManager(exchange="binance.com") ubwa.create_stream(channels=['trade ...