我可以在Windows 7中将Django安装为脱机吗? [英] Can I install Django as offline in Windows 7?

查看:116
本文介绍了我可以在Windows 7中将Django安装为脱机吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Python和PyCharm的新手。当我尝试制作一个Django项目时,它会显示一个错误框。后来我发现这是因为我的电脑上没有互联网连接。



有没有办法在Windows 7 PC中安装Django作为离线?

解决方案

如果您需要执行Django的离线安装:


  1. https://github.com/django/django在具有互联网连接的机器上下载Django版本/ release

  2. 将下载的文件传输到离线PC

  3. 安装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:

  1. Download a Django release on a machine with internet connection from https://github.com/django/django/releases
  2. Transfer the downloaded file to the offline PC
  3. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆