79690962

Date: 2025-07-05 10:31:01
Score: 0.5
Natty:
Report link

I would do pretty much what @phd suggested in the comments.

Instead of trying to install directly on your production machine, you can download and build everything on your build machine, then move the ready files over. Here’s how:

  1. On your build machine, use pip to download the package and all its dependencies:

    python -m pip download example-package -d ./wheels
    

    That grabs wheels and source archives into ./wheels.

  2. If you see any .tar.gz files, build them into wheels so you have everything precompiled:

    python -m pip wheel --no-deps --wheel-dir=./wheels ./wheels/*.tar.gz
    
  3. Copy the entire wheels folder to your production machine.

  4. On your production machine, install from those local files without touching PyPI:

    python -m pip install --no-index --find-links=./wheels example-package
    

This way, your production machine unpacks prebuilt wheels—no compilation needed.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @phd
  • Low reputation (0.5):
Posted by: Viktor Sbruev