I have been trying to setup Atom editor for running python programs on Ubuntu 18 The packages I installed are : script atom-runner autocomplete-python python-tools

I even configured the config.cson file as per the atom-runner configuration .

I am getting the following error:

Atom Runner: testing.py Atom Runner: testing.py

Unable to find command: python Are you sure PATH is configured correctly?

is there something else I need to do ?

There is a section about this error in the FAQs for the atom-runner package here that may help you.

It would seem that the python command is not in your path. Check where python is in your system with

which python

and check that the path (or at least part of it) is in your PATH:

echo $PATH

If not, adding the path to python to your PATH should solve the problem. To do so, add the following line to your .bashrc file:

export PATH=$PATH:[your path to python here]

replace the square bracket with the output from which python

up vote -1 down vote accepted

It just needed to install Python on system. Make sure you have installed it well before.

To install it :

http://ubuntuhandbook.org/index.php/2017/07/install-python-3-6-1-in-ubuntu-16-04-lts/

  • 1
    Phython is preinstalled on Ubuntu. Please describe in more detail what you have installed and which commands you used. – abu_bua Sep 18 at 17:39
  • No it wasnt . Atleast not in mine . I was getting this error and all I had to do was install Python . To install it : ubuntuhandbook.org/index.php/2017/07/… – Khushboo Gupta Sep 24 at 8:06

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.