Where is Python installed on Raspberry Pi?

41,571

Ok, so it is in usr/bin/ after all.

Just need to work out why the hgweb.cgi is displaying a blank page now. (I assumed it was because it was pointing at an incorrect directory, but this is now clearly not the case).

Share:
41,571

Related videos on Youtube

coolblue2000
Author by

coolblue2000

Updated on September 18, 2022

Comments

  • coolblue2000
    coolblue2000 almost 2 years

    I am trying to set up Mercurial on a Raspberry Pi, but the instructions I am using are for Ubuntu. It suggests that the Python folder is usr/bin/python, but this does not exist on my Pi.

    Where is Python installed on a Raspberry Pi?

    • Autumnal
      Autumnal about 11 years
      What OS is your Pi running?
    • nerdwaller
      nerdwaller about 11 years
      The command which python will tell you exactly where the executable is. Do you need the link to the modules and all those goodies too, or just the executable?
    • Bob Stein
      Bob Stein over 9 years
      Sources and importables are in e.g. /usr/lib/python2.7
  • 0xC0000022L
    0xC0000022L about 6 years
    There are dozen possible reasons. For starters are you actually using it as a CGI or were you trying to tie it into your web server via some FastCGI wrapper or so? It just adds to the places where breakage can occur.