Operating System Python

Last updated on 2025-08-13 | Edit this page

Overview

Questions

  • Why not use the Python included with your operating system?
  • Why should I use a separate installation of Python?

Objectives

  • Learn why you shouldn’t use the system Python.

Why not use the operating system’s Python?


Operating systems such as the various flavors of Linux include Python as part of their installation. So why not use this Python instead of installing a separate version? There are many reasons to not use the system Python:

  • Risk of breaking the system tools. Many operating systems use their system Python installation to run essential tools. Installing or upgrading Python packages globally can break these tools or even destabilize the operating system.
  • Permission issues. Modifying the system Python usually requires administrator or root privileges, which is a security risk and an inconvenience.
  • Version conflicts. The system Python version is often outdated and may not match the requirements of your project. Different projects may require different Python or package versions, which system Python cannot flexibly support.
  • Reproducibility problems. Sharing code or deploying to other machines becomes unreliable because system Python versions and installed packages can vary widely across platforms.
  • Lack of flexibility and control. You have little control over the version of Python installed with your operating system, and you might not be able to use newer features unless the OS itself updates to a new version.

Using a tool like uv eliminates all of these issues.

Discussion

Check your system Python

What version of Python is your operating system running? You can check this by running python --version or python3 --version in your terminal which should display the Python version. If the command is not found, then Python is not installed on your system, which is fine because we will be using uv for Python installation.

Key Points
  • Do not use the Python included with your operation system. Using the system Python can break system tools, cause permission errors, introduce version conflicts, limit reproducibility and flexibility with code development.
  • Use a tool like uv to install and manage Python instead of using the system Python. This will avoid all the issues associated with using the operating system Python.