Can I install Django as offline in Windows 7?

10,333

If you need to perform an offline installation of Django:

  1. Download a Django release on a machine with internet connection from https://github.com/django/django/releases
  2. As of Django 1.11, pytz is a dependency. Download the latest wheel from pypi
  3. Transfer the downloaded files to the offline PC
  4. Install pytz: pip install pytz-2017.3-py2.py3-none-any.whl (update filename as appropriate)
  5. Install Django: pip install <release-name>.zip

For example, if you downloaded django-1.9.2.zip from Github, you can install it by running

pip install django-1.9.2.zip
Share:
10,333
Admin
Author by

Admin

Updated on June 22, 2022

Comments

  • Admin
    Admin almost 2 years

    I'm new to Python and PyCharm. When I'm trying to make a Django project, it shows an error box. Later I found that it's due to no availability of internet connection on my PC.

    Is there any way to install Django as offline in Windows 7 PC?