install dependencies using the stdlib ensure_packages function to avoid duplicate declaration errors