[英]I am able to run python on my command prompt of windows but unable to run it in terminal of atom editor
When I tried to use python command in my terminal of atom it shows such error.当我尝试在我的 atom 终端中使用 python 命令时,它显示了这样的错误。 And when same thing I tried through command promt it works.
当我通过命令提示符尝试同样的事情时,它可以工作。 plzz help me out.
请帮助我。
Is this your Python directory?这是你的 Python 目录吗? ie is there a file called 'python.exe' in there?
即那里有一个名为“python.exe”的文件吗?
As far as I know, atom should inherit the PATH variables from the command prompt (I may be mistaken).据我所知,atom 应该从命令提示符继承 PATH 变量(我可能错了)。 If you restart atom, does this persist?
如果你重新启动 atom,这会持续吗?
And also - when you tested it with command prompt, was it pointing to the same directory?还有 - 当你用命令提示符测试它时,它是否指向同一个目录? Essentially, it's not opening because it needs to either a) see a Python executable in the current directory, or b) know where to find the Python executable (PATH variable)
本质上,它不会打开,因为它需要 a) 在当前目录中查看 Python 可执行文件,或者 b) 知道在哪里可以找到 Python 可执行文件(PATH 变量)
Adding python to PATH: https://superuser.com/questions/143119/how-do-i-add-python-to-the-windows-path将 python 添加到 PATH: https : //superuser.com/questions/143119/how-do-i-add-python-to-the-windows-path
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.