Skip to content Skip to sidebar Skip to footer

Installing Django And Related Packages On An Offline Computer

I'm using win7, python 2.7 and I have a project with several packages running. I wanted to move the project to my friends laptop (which can't access to internet, not an option). so

Solution 1:

This is how you can do it

  • Install Django and all related packages to a Python virtual environment

  • Run pip freeze > requirements.txt which will list all installed packages and their versions in this file

  • Use pip wheel -r requirements.txt command which builds a wheelhouse folder of the package list

  • Zip this folder

  • Go to your friend's computer, unzip

  • create virtual environment and run pip install wheelhouse/* (Install all packages from the wheelhouse)

More about pip wheel.

Python and pip needs to be separately copied and installed.

Post a Comment for "Installing Django And Related Packages On An Offline Computer"