3

I've downloaded Flask on my pc, then I'm disconnected, now I need to install Flask without internet connection. What else I need to install Flask offline and in which order should I install them?

Serjik
  • 10,543
  • 8
  • 61
  • 70
  • You can install [bottle](https://bottlepy.org/), which at time of writing has no dependencies. Might be worth considering if you have not yet developed your application. – Paul Rooney Dec 09 '21 at 02:20

1 Answers1

11

You need to download all of flask's dependencies:

  • Werkzeug>=0.7
  • Jinja2>=2.4, which requires:
    • MarkupSafe
    • Babel>=0.8, which requires:
      • pytz
  • itsdangerous>=0.21
  • click >= 2.0

Install them in that order before you install Flask.

You can install the downloaded packages in several ways, the easiest is to use pip, which you then also need to download and install first if you don't already have it. Then you just do

pip install ThePackageFile-0.0.0.tgz

If you don't have pip installed on the target machine, you can expand the archive and then run the setup.py script:

tar xvzf ThePackageFile-0.0.0.tgz
# .. some output
python ThePackageFile/setup.py install
Dave
  • 97
  • 1
  • 8
Burhan Khalid
  • 169,990
  • 18
  • 245
  • 284