No module named '' from alpaca-py

I’m using python 3.11.0.
I ran: pip install alpaca-py
I’m now trying to run this from the examples:

from import StockHistoricalDataClient
from import StockBarsRequest
from import TimeFrame

client = StockHistoricalDataClient()

request_params = StockBarsRequest(
    symbol_or_symbols=["AAPL", "MSFT"],

bars = client.get_stock_bars(request_params)


I’m getting this error: ModuleNotFoundError: No module named ‘’; ‘alpaca’ is not a package

I’ve done a few restart/reimport type of activities but nothing works.

The code autocompletes and “compiles” nicely. It just won’t run.

Make sure that the “alpaca-py” library is installed.