triton-inference-server / server

The Triton Inference Server provides an optimized cloud and edge inferencing solution.
https://docs.nvidia.com/deeplearning/triton-inference-server/user-guide/docs/index.html
BSD 3-Clause "New" or "Revised" License
8.38k stars 1.49k forks source link

fix: Fixing pip installation as a system package #7768

Closed KrishnanPrash closed 2 weeks ago

KrishnanPrash commented 2 weeks ago

What does the PR do?

The PR is to address CI jobs that are failing due to tritonfrontend and tritonserver wheel installation PR [Link] with the following error message:

+ python3 -m pip install --upgrade pip
Requirement already satisfied: pip in /usr/lib/python3/dist-packages (24.0)
Collecting pip
  Downloading pip-24.3.1-py3-none-any.whl.metadata (3.7 kB)
Downloading pip-24.3.1-py3-none-any.whl (1.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 45.0 MB/s eta 0:00:00
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 24.0
ERROR: Cannot uninstall pip 24.0, RECORD file not found. Hint: The package was installed by debian.

From my understanding, the CI jobs were previously failing because the only relevant package installed was apt-get install python3-pip which is a system level package leading to the following error. This can be resolved by adding python3 -m pip install --upgrade pip or pip3 install --upgrade pip which upgrades pip to a user-level version that can be upgraded in the future without the same level of protections.