简体   繁体   English

我可以在 Windows 的命令提示符下运行 python,但无法在 atom 编辑器的终端中运行它

[英]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.

相关问题 我无法运行 python 的任何命令或文件 - 终端中没有 output - I am unable to run any command or file of python - there is no output in terminal 使用 Windows 终端而不是命令提示符运行 python.exe - Run python.exe with Windows Terminal instead of Command Prompt 如何在终端中原子运行命令? - How to run in atom a command in the terminal? 如何直接在终端中运行用 atom 编辑器编写的 python fie? - How can I run a python fie written in atom editor directly in Terminal? 如何在 Windows 7 的命令提示符中运行 Python 程序? - How do I run a Python program in the Command Prompt in Windows 7? 如何在 Windows 命令提示符下运行 python 文件? - How to run a python file in the windows command prompt? Python:无法使用Python脚本打开新的命令提示符会话并通过命令行(Windows)运行程序 - Python: Unable to open a new command prompt session and run a program through command line (windows) using Python script 每当我在命令提示符下运行 python 时都会发出警告(我已经在我的 windows 8.1 操作系统上安装了 anaconda 最新版本) - Warning whenever i run python in my command prompt ( i have installed anaconda latest version on my windows 8.1 os) 无法使用Windows(7)命令提示符运行pylint - Not being able to run pylint using windows (7) command prompt 如何使用python在终端/命令提示符中运行方法 - How to run a method in terminal/command prompt using python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM