Set up a Python LLM dev environment
Mistral AISoftware Engineer · Technical ScreenLast updated
This question evaluates practical competencies in Python development environment setup, reproducible dependency management with lockfiles, virtual environment and interpreter management, secrets handling via environment variables, project structuring, and basic API integration.
Set up a reproducible local Python environment to develop the Mistral-based agent. Demonstrate how you would: install a specific Python version with pyenv; create and activate a virtual environment; manage dependencies with a lockfile; configure environment variables for secrets without committing them; structure the project for quick local execution and testing; and verify the setup by running a short script that prints the model name from a test Mistral API call.
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.