WebFaction
Community site: login faq

Complete newbie here. How do I tell which versions of Python are installed?

asked 11 Mar '11, 07:32

tesuji
1122
accept rate: 0%


Just type "python" in your SSH prompt, and press the Tab key couple of times (taking advantage of the auto-complete feature of Bash) to see the different Python interpreters you can invoke.

permanent link

answered 11 Mar '11, 07:39

tie
1.4k13
accept rate: 44%

Hm, doesn't seem to work. When I type "python" I get the Python prompt but tab doesn't do anything but insert tab spaces. I'm using PuTTY on Windows for SSH.

(11 Mar '11, 10:27) tesuji

Don't press Enter when you type "python" - just tap Tab twice before you actually submit the command.

(11 Mar '11, 10:30) tie

That works. Excellent :)

(11 Mar '11, 10:34) tesuji

which python

permanent link

answered 20 Jun '13, 00:15

hell
11
accept rate: 0%

edited 20 Jun '13, 11:51

seanf
12.2k41936

That will show the default system Python, which will usually be something like /usr/local/bin/python. It doesn't show which Python versions are installed.

(20 Jun '13, 11:52) seanf

This '/usr/local/bin/python' was exactly what I needed. Saved my bothering support.

@Webfaction, I suggest you make that type of info '#!/usr/local/bin/python' and the equivalent a sticky somewhere easy to find, as it is one of the first things people will need (especially newcomers to Perl and Python like me).

permanent link

answered 22 Jun '13, 03:01

MikeA
1
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×337
×21

question asked: 11 Mar '11, 07:32

question was seen: 20,958 times

last updated: 26 Jun '13, 06:42

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM