【发布时间】:2015-09-10 19:17:35
【问题描述】:
我正在尝试在 git-bash 上的 windows 中的 python virtualenv 中运行交互式 shell,但它没有运行。奇怪的是,它似乎什么也没做,只是光标在下一行闪烁,没有输出。
$ python manage.py shell
|
但是,我可以运行诸如 migrate、makemigrations、sqlmigrate 之类的命令。命令出现问题 - shell、dbshell、runserver。
这似乎是一些与 git-bash 相关的问题,因为我可以从命令行运行 shell。我在 Windows 上使用PortableGit-2.4.3.1-2nd-release-candidate-64-bit.7z.exe。
【问题讨论】:
-
你试过了吗?
python manage.py shell_plus --ipython -
@dabad 没有名为 IPython 的模块。顺便说一句,我没有使用 IPython。
-
我想只是
python manage.py shell_plus不行吧? -
@dabad 不。那没有。但它显示了一些关于弃用的输出。
-
如果我遇到挂起程序的问题,我通常会在它们上尝试PyStuck...你能从中得到任何堆栈输出来显示发生了什么吗?
标签: python django windows git-bash