Can I install Django offline in Windows 7?

I am new to Python and PyCharm. When I try to create a Django project, it shows an error window. Later, I discovered that this is due to the lack of an Internet connection on my PC.

Is there a way to install Django offline on a Windows 7 PC?

+6
source share
1 answer

If you need to do an offline installation of Django:

  • Download the Django edition on a computer with an Internet connection from https://github.com/django/django/releases
  • Starting with Django 1.11, pytz is a dependency . Download the last wheel from pypi
  • Transfer downloaded files to a standalone PC
  • Install pytz: pip install pytz-2017.3-py2.py3-none-any.whl (update the file name if necessary)
  • 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 
+7
source

All Articles