python manage.py runserver,shell,dbshel​​l冻结在git-bash上 [英] python manage.py runserver, shell, dbshell freezes on git-bash

查看:160
本文介绍了python manage.py runserver,shell,dbshel​​l冻结在git-bash上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows中的python virtualenv中运行交互式shell,在git-bash上运行,但是没有运行。奇怪的是,它似乎没有做任何事情,只是光标在下一行闪烁,没有输出。

I'm trying to run the interactive shell in python virtualenv in windows, on git-bash, but it isn't running. Strange thing is, it doesn't seem to do anything, just the cursor is blinking on the next line, giving no output.

$ python manage.py shell
|

但是,我可以运行命令,如 - migrate,makemigrations,sqlmigrate。命令 - shell,dbshel​​l,runserver发生问题。

However, I'm able to run commands like - migrate, makemigrations, sqlmigrate. Problem is occurring with the commands - shell, dbshell, runserver.

这似乎是一些git-bash相关的问题,因为我可以从命令行运行shell。我正在使用 Windows上的PortableGit-2.4.3.1-2nd-release-candidate-64-bit.7z.exe

This seems to be some git-bash related issue, because I'm able to run shell from command line. I'm using PortableGit-2.4.3.1-2nd-release-candidate-64-bit.7z.exe on windows.

推荐答案

在评论中总结调查...

Summarising the investigation in the comments...

调查这些问题是使用 pystuck

在这种情况下,似乎对IPython有某种内部的依赖性,因为安装pystuck也会安装IPython,并且该错误不再再次安装。

In this case, it would appear to have been some sort of internal dependency on IPython as installing pystuck also installs IPython and the bug no longer reproduces with Both installed.

这篇关于python manage.py runserver,shell,dbshel​​l冻结在git-bash上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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