How to make sure a python program runs on a computer that might not have internet connection to download the external libraries used?

This page summarizes the projects mentioned and recommended in the original post on /r/learnpython

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • Radioactivity

  • Code: https://github.com/preyasu-rakshit/Radioactivity

  • python-build-standalone

    Produce redistributable builds of Python

  • If you really want to be sure, you can download an install_only standalone Python build from https://github.com/indygreg/python-build-standalone/releases and install the libraries with the included pip. Then just tar it again to archive it, and use the included python to run your project. The downloaded wheel you get with pip wheel may depend on the Python version so you just save the wheels you must make sure the Python point version is exactly the same.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • warehouse

    The Python Package Index

  • Nitpick, you mean PyPI, not pypy. Very different projects.

  • semver

    Semantic Versioning Specification

  • No, you don't need to match PATCH versions (reference: semver, MAJOR.MINOR.PATCH); only MINOR versions of Python are distinct enough to warrant separate wheels.

  • matplotlib

    matplotlib: plotting with Python

  • The thing is, you will also need to go get the wheels (or *.tar.gz sources) for all of the dependencies of your packages as well! Over in matplotlib's setup.py you can find the following:

  • CPython

    The Python programming language

  • Okay so this is all to say that we've got quite a lot of work to do if we are to install a bunch of wheels manually. Another option which will work is to go download whatever version of Python you want from https://www.python.org/, run the installer, and customize installation a choose a flash drive as your install location, e.g.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts