简体   繁体   中英

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. And when same thing I tried through command promt it works. plzz help me out.

Is this your Python directory? ie is there a file called 'python.exe' in there?

As far as I know, atom should inherit the PATH variables from the command prompt (I may be mistaken). If you restart atom, does this persist?

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)

Adding python to PATH: https://superuser.com/questions/143119/how-do-i-add-python-to-the-windows-path

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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