小编Rah*_*tal的帖子

消息 - 找不到已安装的 python-django 或 python3-django 版本

我是 Ubuntu 的新手,到目前为止我很喜欢它。我一直在尝试为网站开发项目安装 Django。在终端中,当我启动 python 解释器并输入

import django 
django.VERSION
Run Code Online (Sandbox Code Playgroud)

我没有遇到任何问题并且得到

(1, 8, 2, 'final', 0) 
Run Code Online (Sandbox Code Playgroud)

然后,为了开始我的项目,我输入

django-admin startproject trialsite
Run Code Online (Sandbox Code Playgroud)

我收到一条消息说

Cannot find installed version of python-django or python3-django
Run Code Online (Sandbox Code Playgroud)

我安装了 djangopip install Django==1.8.2并在通过 apt-get 使用它之前安装了 django-admin 包。此外,我一直在关注 Django 的书作为整个过程的指南。有人可以告诉我这是什么问题吗?


编辑:
我的/usr/local/lib/python2.7/dist-packagessite-packages都是空的。我不知道这是否重要。但根据 django book,这是django-admin应该的地方。

package-management python django

10
推荐指数
1
解决办法
3万
查看次数

在 ubuntu 14.04 中安装 apache 2 时出现问题:dpkg:- 处理包 javascript-common 时出错(--configure):

我试图在卸载 apache 2 后重新安装它。但是在使用命令安装它时-

sudo apt-get install apache2

我收到错误-

rahul@rahulpc:~$ sudo apt-get install apache2
[sudo] password for rahul: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apache2 is already the newest version.
The following packages were automatically installed and are no longer required:
  libblas3 liblinear-tools liblinear1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 474 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional …
Run Code Online (Sandbox Code Playgroud)

apt dpkg apache2 14.04

8
推荐指数
1
解决办法
2万
查看次数

为什么我们不需要像在 Windows 中那样在 Ubuntu 上启动 Apache 服务器?

我的系统上安装了 LAMP 服务器,并且运行良好。但是,我很好奇为什么我们不需要在 LAMP 中启动 Apache 服务器。相比之下,当我们在 Windows 上安装 WAMP 时,我们必须启动它并激活 Apache 和 MySQL。Apache 是在我们启动 Ubuntu 时启动(即它总是在后台运行)还是在我们打开 localhost 时启动?

问题“手动启动 LAMP 服务器”的答案描述了如何手动启动 LAMP,但没有描述如何在内部自动启动 LAMP。

lamp apache2

5
推荐指数
1
解决办法
2556
查看次数

标签 统计

apache2 ×2

14.04 ×1

apt ×1

django ×1

dpkg ×1

lamp ×1

package-management ×1

python ×1