I'm using The Definitive guide to installing Django on ubuntu and ironically need something more definitive because I can't make it work.
我使用的是在ubuntu上安装Django的权威指南,讽刺的是,我需要一些更权威的东西,因为我不能让它工作。
(I have followed the steps before this on the link above)
(我已经按照上面链接的步骤进行)
Here is my situation/standstill:
这是我的情况/停止:
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
So it tells me there is no file Django-1.3.1.tar.gz? I think I can check for a file by us by:
它告诉我没有django 1。3。1。tar。gz文件?我想我可以查一下我们的文件:
drewverlee@ubuntu:/var/src$ ls
index.html index.html.1
drewverlee@ubuntu:/var/src$
What do I need to do?
我需要做什么?
6 个解决方案
#1
0
Indeed, following the link I get the same problem, first.
实际上,根据这个链接,我首先得到了同样的问题。
mv index.html Django-1.3.1.tar.gz
fixes it for me. Then you can continue with
为我修复它。然后你可以继续
tar xzvf Django-1.3.1.tar.gz
#2
17
pip
is best tool for installing python packages. Here is link to install setup-tools and pip on ubuntu.
pip是安装python包的最佳工具。这里是在ubuntu上安装setup-tools和pip的链接。
If you have installed pip then it will be very easy to install django and other python packages.
如果您已经安装了pip,那么安装django和其他python包将非常容易。
$ sudo pip install django
or for a specific version of django
或者是django的特定版本
$ sudo pip install django==1.3.1
#3
3
If you're using ubuntu, then you can just use the package provided in the repositories:
如果你使用的是ubuntu,那么你可以使用存储库中提供的包:
$ sudo apt-get install python-django
...
$ python -c 'import django; print django.get_version()'
1.3
#4
0
Any guide that doesn't include virtualenv and virtualenvwrapper isn't definite enough for me :) Seriously, it will save you from a world of pain.
任何不包括virtualenv和virtualenvwrapper的指南对我来说都不够明确:)说真的,它将把你从痛苦的世界中拯救出来。
Also nginx + gunicorn now seems to be the default method for serving up django rather then Apache + mod_wsgi, but I'd say that that's less definite.
此外,nginx + gunicorn现在似乎是为django提供服务的默认方法,而不是Apache + mod_wsgi,但我认为这并不明确。
#5
0
1) download Django-1.3.1.tar.gz https://www.djangoproject.com/download/
1)下载Django-1.3.1.tar。广州https://www.djangoproject.com/download/
2) go into directory with the file
2)进入文件目录
tar xzvf Django-1.3.1.tar.gz
cd Django-1.3.1
sudo python setup.py install
3) check if python sees django
3)检查python是否看到django
>>> python
>>>import django
>>>print django.get_version()
After that you get Aptana as IDE to work with django
之后,您将Aptana作为IDE使用django
#6
0
if you have easy_install:
如果你有easy_install:
easy_install django
and for a specific version:
具体版本:
easy_install django==1.#.#
#1
0
Indeed, following the link I get the same problem, first.
实际上,根据这个链接,我首先得到了同样的问题。
mv index.html Django-1.3.1.tar.gz
fixes it for me. Then you can continue with
为我修复它。然后你可以继续
tar xzvf Django-1.3.1.tar.gz
#2
17
pip
is best tool for installing python packages. Here is link to install setup-tools and pip on ubuntu.
pip是安装python包的最佳工具。这里是在ubuntu上安装setup-tools和pip的链接。
If you have installed pip then it will be very easy to install django and other python packages.
如果您已经安装了pip,那么安装django和其他python包将非常容易。
$ sudo pip install django
or for a specific version of django
或者是django的特定版本
$ sudo pip install django==1.3.1
#3
3
If you're using ubuntu, then you can just use the package provided in the repositories:
如果你使用的是ubuntu,那么你可以使用存储库中提供的包:
$ sudo apt-get install python-django
...
$ python -c 'import django; print django.get_version()'
1.3
#4
0
Any guide that doesn't include virtualenv and virtualenvwrapper isn't definite enough for me :) Seriously, it will save you from a world of pain.
任何不包括virtualenv和virtualenvwrapper的指南对我来说都不够明确:)说真的,它将把你从痛苦的世界中拯救出来。
Also nginx + gunicorn now seems to be the default method for serving up django rather then Apache + mod_wsgi, but I'd say that that's less definite.
此外,nginx + gunicorn现在似乎是为django提供服务的默认方法,而不是Apache + mod_wsgi,但我认为这并不明确。
#5
0
1) download Django-1.3.1.tar.gz https://www.djangoproject.com/download/
1)下载Django-1.3.1.tar。广州https://www.djangoproject.com/download/
2) go into directory with the file
2)进入文件目录
tar xzvf Django-1.3.1.tar.gz
cd Django-1.3.1
sudo python setup.py install
3) check if python sees django
3)检查python是否看到django
>>> python
>>>import django
>>>print django.get_version()
After that you get Aptana as IDE to work with django
之后,您将Aptana作为IDE使用django
#6
0
if you have easy_install:
如果你有easy_install:
easy_install django
and for a specific version:
具体版本:
easy_install django==1.#.#