Installing Django and related packages on an offline computer

北战南征 提交于 2019-12-01 14:45:28

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!