'binance' object has no attribute fapiPrivate_post_leverage

hi
After completing the code with Python, I saw that the code was running well, so I uploaded the code to aws ec2 and tried to run it. When I run it on my personal computer, there is no error, but the error [‘binance’ object has no attribute fapiPrivate_post_leverage] occurs only on the ec2 server.
why does this happen

def enter_position(exchange, coin,coin_amount, position):
   if position == 'long': 
        binance.fapiPrivate_post_leverage({  
            'symbol': coin2,  
            'leverage': Leverage,  
        })
        exchange.create_market_buy_order(
            symbol= coin, 
            amount= coin_amount * Leverage,                
            params={'type': 'future'})

which library did you use? did you install the same version on your local computer and on server?