Python ecosystem and project installation
Any Python project needs three fundamental tools: the Python interpreter, dependency management, and a task execution tool. The Python interpreter executes your Python project as expected. All the code within the book is tested with Python 3.11.8. You can download the Python interpreter from here: https://www.python.org/downloads/. We recommend installing the exact Python version (Python 3.11.8) to run the LLM Twin project using pyenv
, making the installation process straightforward.
Instead of installing multiple global Python versions, we recommend managing them using pyenv
, a Python version management tool that lets you manage multiple Python versions between projects. You can install it using this link: https://github.com/pyenv/pyenv?tab=readme-ov-file#installation.
After you have installed pyenv
, you can install the latest version of Python 3.11, using pyenv
, as follows:
pyenv install 3.11.8
Now list all installed Python...