我可以在Windows 7中将Django安装为脱机吗? [英] Can I install Django as offline in Windows 7?
本文介绍了我可以在Windows 7中将Django安装为脱机吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法在Windows 7 PC中安装Django作为离线?
解决方案
如果您需要执行Django的离线安装:
- 从 https://github.com/django/django在具有互联网连接的机器上下载Django版本/ release
- 将下载的文件传输到离线PC
- 安装Django:
pip install< -name> .zip
例如,如果您下载了 django-1.9 .2.zip
,可以通过运行
pip install django-1.9来安装它。 2.zip
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?
解决方案
If you need to perform an offline installation of Django:
- Download a Django release on a machine with internet connection from https://github.com/django/django/releases
- Transfer the downloaded file to the offline PC
- 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
这篇关于我可以在Windows 7中将Django安装为脱机吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文