为什么django打开pype? [英] Why does django open with pype?

查看:105
本文介绍了为什么django打开pype?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我输入命令提示符

django-admin.py startproject mysite

django-admin.py将自动打开pype,

the django-admin.py will open automatically with pype,

现在如果我键入 cd mysite 它说系统找不到指定的路径

我正在使用activepython(我不认为activepython与它有任何关系),django使用pypm安装。我可以在pydev中创建一个项目,而不是在命令提示符下,大约一年前,当我第一次安装activepython,它曾经工作,但据我记得,我删除了一个django项目,它将不再工作了。

I'm using activepython (i don't think that activepython has anything to do with it), django installed using pypm. I can create a project in pydev, not in the command prompt, about a year ago when i first installed activepython, it used to work but as far as i can remember i deleted a django project and it won't work anymore.

如何解决?

编辑

@Mikko Ohtamaa
mysite文件夹不存在,我看到它已经从 C:\Documents and Settings\Administrator\打开文件应用程序数据\Python\Scripts\django-admin.py

@Mikko Ohtamaa mysite folder does not exist,i see on pype that it has opened the file from C:\Documents and Settings\Administrator\Application Data\Python\Scripts\django-admin.py

但路径不正确,我没有应用程序数据文件夹在 C:\Documents and Settings\Administrator\

but the path is incorrect i don't have an application data folder in C:\Documents and Settings\Administrator\

我已经搜索整个电脑和天堂没有找到一个文件夹,此外你运行这个100次

I have searched the entire pc and haven't find a folder, furthermore in you run this 100 times

django-admin.py startproject mysite

它会继续打开一个名为django-admin.py的文件,你知道,没有其他

it will keep opening a file called django-admin.py you know, nothing else

推荐答案

但路径不正确我没有C:\Documents和Settings\Administrator\

"but the path is incorrect i don't have an application data folder in C:\Documents and Settings\Administrator\"

这意味着你的Python或Django安装已损坏(可能是由于重新安装Python)。

This would mean that your Python or Django installation is corrupted (probably due to reinstall Python).

尝试转到零点,并在计算机上重新安装Python和Djangon。另外如果还是不行,请说明你是如何安装的。

Try go to square zero and reinstall both Python and Djangon on your computer. Also if it still does not work please describe how did you install both of them.

这篇关于为什么django打开pype?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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