简体   繁体   English

使用atom-runner在atom中运行python3

[英]Run python3 in atom with atom-runner

I am trying to run simple python code in atom using atom-runner package, but I am getting following error: 我正在尝试使用atom-runner程序包在atom中运行简单的python代码,但出现以下错误:

Unable to find command: python 找不到命令:python

Are you sure PATH is configured correctly? 您确定PATH配置正确吗?

How can I configure PATH. 如何配置PATH。 (path to my python is C:\\Python34 ) (我的python的路径是C:\\Python34

Right click the start menu, and select System. 右键单击开始菜单,然后选择系统。 Then, hit "Advanced system settings" > "Environment Variables". 然后,点击“高级系统设置” - >“环境变量”。 Click on path, and hit edit. 单击路径,然后单击编辑。 Select "New" and add the folder that your python executable is in. That should fix the problem. 选择“新建”,并补充说,你的Python可执行文件的文件夹。这应该解决这个问题。

Your other option is to reinstall python and select "add PYTHON to PATH" as Carpetsmoker suggested. 您的另一种选择是重新安装Python和选择“添加到PYTHON PATH”为Carpetsmoker建议。

If this does not work guys uninstall Python and Atom. 如果这样不起作用,请卸载Python和Atom。 While reinstalling Python make sure you click on "Add Python to Path" so you will not have any problems with setting the paths at all! 重新安装Python时,请确保单击“将Python添加到路径”,以使设置路径完全没有问题!

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

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