python - 如何在 Ubuntu 11.10 上安装 Django?

标签 python django installation

我正在使用 The Definitive guide to installing Django on ubuntu具有讽刺意味的是,我需要更明确的东西,因为我无法让它发挥作用。

(我已经在上面的链接上按照之前的步骤操作了)

这是我的情况/停顿:

drewverlee@ubuntu:/var/src$ tar xzvf Django-1.3.1.tar.gz
tar (child): Django-1.3.1.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

所以它告诉我没有文件 Django-1.3.1.tar.gz?我想我可以通过以下方式检查我们的文件:

drewverlee@ubuntu:/var/src$ ls
index.html  index.html.1
drewverlee@ubuntu:/var/src$

我需要做什么?

最佳答案

pip 是安装 python 包的最佳工具。这是 link在 ubuntu 上安装设置工具和 pip。

如果你已经安装了 pip 那么安装 django 和其他 python 包将非常容易。

$ sudo pip install django

或特定版本的django

$ sudo pip install django==1.3.1

关于python - 如何在 Ubuntu 11.10 上安装 Django?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9558078/

相关文章:

python - 如何对多列、不同类型、不同长度进行爆破?

python - Django,即使在 collectstatic 之后也没有提供 uwsgi 静态文件

python - "== True"和 "is True"的表达式给出不同的结果

python - Django : Testing admin user

django - docker-compose - 数据库迁移和其他前/后脚本

django - ImportError : No module named django. core.handlers.wsgi 在 apache 上安装 django mod_wsgi 配置

installation - NSIS - 仅在安装完成时运行程序

installation - 导入 torch OSError : [WinError 127]

python - 在其他 div 内的 div 之后抓取文本

python - 模块未找到错误 : No module named 'rest_framework' I already installed djangorestframework