Community site: login faq

Hi,

My django webapp appears setup using python 2.7, however, when I enter the command "python" in my ssh, it says its python 2.6.5? How can I make it 2.7?

asked 11 Dec '11, 04:42

jackliu
111
accept rate: 0%


Hi,

You can start a specific Python version by running pythonX.X from the command line, for example: python2.7

permanent link

answered 11 Dec '11, 04:48

todork
1.2k5
accept rate: 34%

You can edit your .bash_profile file to alias 'python' to whichever version you want to use. Just remember to do 'source .bash_profile' to reload changes.

permanent link

answered 11 Dec '11, 16:18

tclancy
861515
accept rate: 6%

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:

×909
×337

question asked: 11 Dec '11, 04:42

question was seen: 3,157 times

last updated: 11 Dec '11, 16:18

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
{"cc_re__cc_re__cc_by_sa_3_0": ["ator\"> |</span> <a href=\"/faq/\" >faq</a> <span class=\"link-separator\"> |</span> <a href=\"/privacy/\" >privacy</a> <span class=\"link-separator\"> |</span> <a href=\"http://www.webfaction.com/support/\" target=\"_blank\">support</a> <span class=\"link-separator\"> |</span> <a href=\"http://www.webfaction.com/contact/\" >contact</a> \n    </div>\n  <p>\n     <a href=\"http://osqa.net\" target=\"_blank\" title=\"OSQA Development Build (None)\">\n        powered by OSQA\n     </a>\n  </p>\n</div>\n <div id=\"licenseLogo\">\n  <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/3.0/\">\n            <img src=\"/m/default/media/images/by-sa-88x31.png\" title=\"Creative Commons: Attribution - Share Alike\" alt=\"cc-by-sa\" width=\"88\" height=\"31\" />\n  </a>\n </div>\n\n\n            </div -->\n        \n\n<div style=\"padding: 50px 0 80px 0; background: url(https://www.webfaction.com/local_media/images/footer_bg.jpg) left top repeat; text-align: center\">\n    <div style=\"width: 988px; text-align: left\">\n        <table id=\"footertable\">\n            <tr>\n                <td valign=\"top\">\n          "]}