You can move the /etc/apt/preferences.d/lambda-repository file or change the priority level within the file to lower it as needed. Additionally, you can create a python virtual environment and customize the environment to your needs while still inheriting the site packages. You can refer to our docs page on the venv: Virtual environments and Docker containers - Lambda Docs