Spyder不会在代码中运行新的更改 [英] Spyder does not run new changes in code

查看:521
本文介绍了Spyder不会在代码中运行新的更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Spyder 3.2.4(通过Anaconda)更新Python 3.6代码,但是当我对正在处理的代码进行更改并尝试运行它时,它将运行我启动的代码.会话.有人知道对此有任何解决方案吗?

I am trying to update Python 3.6 code with Spyder 3.2.4 (through Anaconda), but when I make a change to the code that I am working on and attempt to run it, it will run the code that I started the session with. Does anyone know of any solutions to this?

推荐答案

更改正在处理的.py目录.右键单击sample.py(位于控制台上方),然后选择设置控制台工作目录.您可以在处理每个Python文件时将其应用. 我也遇到了同样的问题,这样做了,现在还不错.

change the directory of .py that you are working on. Right click to sample.py(which is above of console) and choose set console working directory. You can apply it for each python file while working on it. I had also same problem and did that , now it is okey.

这篇关于Spyder不会在代码中运行新的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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