简体   繁体   English

运行模块后,Python Shell无法重新启动

[英]Python shell is not restarting after running a module

For some reason my python shell is not restarting when I run a module. 出于某种原因,运行模块时我的python shell无法重新启动。 I feel like I've tried everything. 我觉得我已经尝试了一切。 I have opened, and created new files through the shell. 我已经打开了,并通过外壳创建了新文件。 I have reinstalled python. 我已经重新安装了python。 I have restarted my machine. 我已经重启了机器。 etc. etc. 等等等

The shell does work when I write a function directly into it, so it's not a problem with the shell itself. 当我直接向其中编写函数时,shell确实可以工作,因此,shell本身不是问题。 When I "run module" in a .py file, it toggles to the shell but it doesn't have the "restart" message as it did before. 当我在.py文件中“运行模块”时,它切换到外壳程序,但没有像以前那样的“重新启动”消息。 So, running functions in .py files obviously doesn't work... 因此,在.py文件中运行功能显然不起作用...

Has anyone else experienced this? 其他人有没有经历过? Any ideas? 有任何想法吗?

I'm using the python 3.4.6 shell for windows 64 bit...I was using 3.4.3 before but I thought upgrading might help. 我正在将python 3.4.6 shell用于Windows 64位...我之前使用3.4.3,但我认为升级可能会有所帮助。

Thanks in advance 提前致谢

I have personally never experienced this, however, if this has been happening AS SOON AS you upgraded to the 3.4.6 python shell, the existing scripts may be affecting the .py scripts used to run the python shell. 我个人从未经历过这种情况,但是,如果这种情况是在升级到3.4.6 python shell之后不久发生的,则现有脚本可能会影响用于运行python shell的.py脚本。 I don't know if this helps but maybe go back to 3.4.3 or download the 3.6.4 version of python. 我不知道这是否有帮助,但也许可以返回3.4.3或下载3.6.4版本的python。

https://www.python.org/downloads/ https://www.python.org/downloads/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM