I'm working on installing sage, and I now just need to run the "make" command in the command line, but when I do I get the following:

/usr/bin/env: 'python': No such file or directory

Makefile:16: recipe for target 'all' failed

make: *** [all] Error 127

My python is installed in




Or at least that's what I find when I run:

find /usr -type f -name 'python*' -perm -a+x

Update: I ran "sudo apt-get install python" and ran "make" and had a huge list of outputs, then ran ./sage, which crashed very quickly.

  • 1
    What python is in your $PATH? type -a python – glenn jackman Oct 30 '17 at 20:37
  • @glennjackman it is in usr/bin/python – Ammastaro Oct 31 '17 at 14:13
  • If you do ls -l /usr/bin/python is it a symlink to python2 or python3? – glenn jackman Oct 31 '17 at 14:22
  • It says python2.7 – Ammastaro Oct 31 '17 at 14:36

It seems this requires python2, but not a specific version of it to execute. You need to have the python-minimal package installed, as it is what provides the /usr/bin/python symlink.

| improve this answer | |
  • I've already had that installed – Ammastaro Oct 30 '17 at 20:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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