Install dependencies with ensure_packages