{"action":"created","comment":{"url":"https://api.github.com/repos/sourcelair/help/pulls/comments/44872802","id":44872802,"diff_hunk":"@@ -0,0 +1,17 @@\n+---\n+title: Choose python version in SourceLair\n+layout: page\n+---\n+\n+In SourceLair, the **default** python version is **2.7.6**. However, you are able to choose between python 2.7.6 and 3.4.3.\n+\n+In order to activate python **3.4.3** all you have to do is [paste](http://help.sourcelair.com/terminal/copy-paste/) the following command in your terminal:  \n+`mkdir -p /mnt/data/.local/bin && ln -fs $(which python3) /mnt/data/.local/bin/python && ln -fs $(which pip3) /mnt/data/.local/bin/pip`\n+\n+In order to activate python **2.7.6**, [paste](http://help.sourcelair.com/terminal/copy-paste/) the following command in your terminal:  \n+`mkdir -p /mnt/data/.local/bin && ln -fs $(which python2) /mnt/data/.local/bin/python && ln -fs $(which pip2) /mnt/data/.local/bin/pip`\n+\n+Right after changing your python version make sure you **restart your server as well as your terminal** for the change to take effect. Any process (server, terminal, run file, etc) that starts after the change will run with the newly selected python version.\n+\n+At any time, if you want to check the currently active python version you can run the following command in your terminal:  \n+`python -c 'import sys; print(sys.version_info[:])'`","path":"_runtime/python-version.md","position":17,"original_position":17,"commit_id":"d4a48c8f5ad5612354252a7821ad9dbfba3d8885","original_commit_id":"d4a48c8f5ad5612354252a7821ad9dbfba3d8885","user":{"login":"TDaglis","id":3427236,"avatar_url":"https://avatars.githubusercontent.com/u/3427236?v=3","gravatar_id":"","url":"https://api.github.com/users/TDaglis","html_url":"https://github.com/TDaglis","followers_url":"https://api.github.com/users/TDaglis/followers","following_url":"https://api.github.com/users/TDaglis/following{/other_user}","gists_url":"https://api.github.com/users/TDaglis/gists{/gist_id}","starred_url":"https://api.github.com/users/TDaglis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TDaglis/subscriptions","organizations_url":"https://api.github.com/users/TDaglis/orgs","repos_url":"https://api.github.com/users/TDaglis/repos","events_url":"https://api.github.com/users/TDaglis/events{/privacy}","received_events_url":"https://api.github.com/users/TDaglis/received_events","type":"User","site_admin":false},"body":"sure :+1: \r\nI'm changing it","created_at":"2015-11-15T15:06:45Z","updated_at":"2015-11-15T15:06:45Z","html_url":"https://github.com/sourcelair/help/pull/10#discussion_r44872802","pull_request_url":"https://api.github.com/repos/sourcelair/help/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/sourcelair/help/pulls/comments/44872802"},"html":{"href":"https://github.com/sourcelair/help/pull/10#discussion_r44872802"},"pull_request":{"href":"https://api.github.com/repos/sourcelair/help/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/sourcelair/help/pulls/10","id":50727485,"html_url":"https://github.com/sourcelair/help/pull/10","diff_url":"https://github.com/sourcelair/help/pull/10.diff","patch_url":"https://github.com/sourcelair/help/pull/10.patch","issue_url":"https://api.github.com/repos/sourcelair/help/issues/10","number":10,"state":"open","locked":false,"title":"Added python version selection page","user":{"login":"TDaglis","id":3427236,"avatar_url":"https://avatars.githubusercontent.com/u/3427236?v=3","gravatar_id":"","url":"https://api.github.com/users/TDaglis","html_url":"https://github.com/TDaglis","followers_url":"https://api.github.com/users/TDaglis/followers","following_url":"https://api.github.com/users/TDaglis/following{/other_user}","gists_url":"https://api.github.com/users/TDaglis/gists{/gist_id}","starred_url":"https://api.github.com/users/TDaglis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TDaglis/subscriptions","organizations_url":"https://api.github.com/users/TDaglis/orgs","repos_url":"https://api.github.com/users/TDaglis/repos","events_url":"https://api.github.com/users/TDaglis/events{/privacy}","received_events_url":"https://api.github.com/users/TDaglis/received_events","type":"User","site_admin":false},"body":"Added instructions for changing the default python and pip version","created_at":"2015-11-14T17:13:17Z","updated_at":"2015-11-15T15:06:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e407cb31b70f963286901694595bcabf6effb763","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sourcelair/help/pulls/10/commits","review_comments_url":"https://api.github.com/repos/sourcelair/help/pulls/10/comments","review_comment_url":"https://api.github.com/repos/sourcelair/help/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sourcelair/help/issues/10/comments","statuses_url":"https://api.github.com/repos/sourcelair/help/statuses/d4a48c8f5ad5612354252a7821ad9dbfba3d8885","head":{"label":"sourcelair:python-version","ref":"python-version","sha":"d4a48c8f5ad5612354252a7821ad9dbfba3d8885","user":{"login":"sourcelair","id":799101,"avatar_url":"https://avatars.githubusercontent.com/u/799101?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcelair","html_url":"https://github.com/sourcelair","followers_url":"https://api.github.com/users/sourcelair/followers","following_url":"https://api.github.com/users/sourcelair/following{/other_user}","gists_url":"https://api.github.com/users/sourcelair/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcelair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcelair/subscriptions","organizations_url":"https://api.github.com/users/sourcelair/orgs","repos_url":"https://api.github.com/users/sourcelair/repos","events_url":"https://api.github.com/users/sourcelair/events{/privacy}","received_events_url":"https://api.github.com/users/sourcelair/received_events","type":"Organization","site_admin":false},"repo":{"id":35093507,"name":"help","full_name":"sourcelair/help","owner":{"login":"sourcelair","id":799101,"avatar_url":"https://avatars.githubusercontent.com/u/799101?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcelair","html_url":"https://github.com/sourcelair","followers_url":"https://api.github.com/users/sourcelair/followers","following_url":"https://api.github.com/users/sourcelair/following{/other_user}","gists_url":"https://api.github.com/users/sourcelair/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcelair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcelair/subscriptions","organizations_url":"https://api.github.com/users/sourcelair/orgs","repos_url":"https://api.github.com/users/sourcelair/repos","events_url":"https://api.github.com/users/sourcelair/events{/privacy}","received_events_url":"https://api.github.com/users/sourcelair/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sourcelair/help","description":"Help portal for SourceLair","fork":false,"url":"https://api.github.com/repos/sourcelair/help","forks_url":"https://api.github.com/repos/sourcelair/help/forks","keys_url":"https://api.github.com/repos/sourcelair/help/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sourcelair/help/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sourcelair/help/teams","hooks_url":"https://api.github.com/repos/sourcelair/help/hooks","issue_events_url":"https://api.github.com/repos/sourcelair/help/issues/events{/number}","events_url":"https://api.github.com/repos/sourcelair/help/events","assignees_url":"https://api.github.com/repos/sourcelair/help/assignees{/user}","branches_url":"https://api.github.com/repos/sourcelair/help/branches{/branch}","tags_url":"https://api.github.com/repos/sourcelair/help/tags","blobs_url":"https://api.github.com/repos/sourcelair/help/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sourcelair/help/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sourcelair/help/git/refs{/sha}","trees_url":"https://api.github.com/repos/sourcelair/help/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sourcelair/help/statuses/{sha}","languages_url":"https://api.github.com/repos/sourcelair/help/languages","stargazers_url":"https://api.github.com/repos/sourcelair/help/stargazers","contributors_url":"https://api.github.com/repos/sourcelair/help/contributors","subscribers_url":"https://api.github.com/repos/sourcelair/help/subscribers","subscription_url":"https://api.github.com/repos/sourcelair/help/subscription","commits_url":"https://api.github.com/repos/sourcelair/help/commits{/sha}","git_commits_url":"https://api.github.com/repos/sourcelair/help/git/commits{/sha}","comments_url":"https://api.github.com/repos/sourcelair/help/comments{/number}","issue_comment_url":"https://api.github.com/repos/sourcelair/help/issues/comments{/number}","contents_url":"https://api.github.com/repos/sourcelair/help/contents/{+path}","compare_url":"https://api.github.com/repos/sourcelair/help/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sourcelair/help/merges","archive_url":"https://api.github.com/repos/sourcelair/help/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sourcelair/help/downloads","issues_url":"https://api.github.com/repos/sourcelair/help/issues{/number}","pulls_url":"https://api.github.com/repos/sourcelair/help/pulls{/number}","milestones_url":"https://api.github.com/repos/sourcelair/help/milestones{/number}","notifications_url":"https://api.github.com/repos/sourcelair/help/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sourcelair/help/labels{/name}","releases_url":"https://api.github.com/repos/sourcelair/help/releases{/id}","created_at":"2015-05-05T10:42:59Z","updated_at":"2015-05-08T08:23:29Z","pushed_at":"2015-11-14T17:13:17Z","git_url":"git://github.com/sourcelair/help.git","ssh_url":"git@github.com:sourcelair/help.git","clone_url":"https://github.com/sourcelair/help.git","svn_url":"https://github.com/sourcelair/help","homepage":"http://help.sourcelair.com","size":289,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"sourcelair:gh-pages","ref":"gh-pages","sha":"f2279f7d71bc436766fd8af30d5d9ba338b0ffcf","user":{"login":"sourcelair","id":799101,"avatar_url":"https://avatars.githubusercontent.com/u/799101?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcelair","html_url":"https://github.com/sourcelair","followers_url":"https://api.github.com/users/sourcelair/followers","following_url":"https://api.github.com/users/sourcelair/following{/other_user}","gists_url":"https://api.github.com/users/sourcelair/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcelair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcelair/subscriptions","organizations_url":"https://api.github.com/users/sourcelair/orgs","repos_url":"https://api.github.com/users/sourcelair/repos","events_url":"https://api.github.com/users/sourcelair/events{/privacy}","received_events_url":"https://api.github.com/users/sourcelair/received_events","type":"Organization","site_admin":false},"repo":{"id":35093507,"name":"help","full_name":"sourcelair/help","owner":{"login":"sourcelair","id":799101,"avatar_url":"https://avatars.githubusercontent.com/u/799101?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcelair","html_url":"https://github.com/sourcelair","followers_url":"https://api.github.com/users/sourcelair/followers","following_url":"https://api.github.com/users/sourcelair/following{/other_user}","gists_url":"https://api.github.com/users/sourcelair/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcelair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcelair/subscriptions","organizations_url":"https://api.github.com/users/sourcelair/orgs","repos_url":"https://api.github.com/users/sourcelair/repos","events_url":"https://api.github.com/users/sourcelair/events{/privacy}","received_events_url":"https://api.github.com/users/sourcelair/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sourcelair/help","description":"Help portal for SourceLair","fork":false,"url":"https://api.github.com/repos/sourcelair/help","forks_url":"https://api.github.com/repos/sourcelair/help/forks","keys_url":"https://api.github.com/repos/sourcelair/help/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sourcelair/help/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sourcelair/help/teams","hooks_url":"https://api.github.com/repos/sourcelair/help/hooks","issue_events_url":"https://api.github.com/repos/sourcelair/help/issues/events{/number}","events_url":"https://api.github.com/repos/sourcelair/help/events","assignees_url":"https://api.github.com/repos/sourcelair/help/assignees{/user}","branches_url":"https://api.github.com/repos/sourcelair/help/branches{/branch}","tags_url":"https://api.github.com/repos/sourcelair/help/tags","blobs_url":"https://api.github.com/repos/sourcelair/help/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sourcelair/help/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sourcelair/help/git/refs{/sha}","trees_url":"https://api.github.com/repos/sourcelair/help/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sourcelair/help/statuses/{sha}","languages_url":"https://api.github.com/repos/sourcelair/help/languages","stargazers_url":"https://api.github.com/repos/sourcelair/help/stargazers","contributors_url":"https://api.github.com/repos/sourcelair/help/contributors","subscribers_url":"https://api.github.com/repos/sourcelair/help/subscribers","subscription_url":"https://api.github.com/repos/sourcelair/help/subscription","commits_url":"https://api.github.com/repos/sourcelair/help/commits{/sha}","git_commits_url":"https://api.github.com/repos/sourcelair/help/git/commits{/sha}","comments_url":"https://api.github.com/repos/sourcelair/help/comments{/number}","issue_comment_url":"https://api.github.com/repos/sourcelair/help/issues/comments{/number}","contents_url":"https://api.github.com/repos/sourcelair/help/contents/{+path}","compare_url":"https://api.github.com/repos/sourcelair/help/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sourcelair/help/merges","archive_url":"https://api.github.com/repos/sourcelair/help/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sourcelair/help/downloads","issues_url":"https://api.github.com/repos/sourcelair/help/issues{/number}","pulls_url":"https://api.github.com/repos/sourcelair/help/pulls{/number}","milestones_url":"https://api.github.com/repos/sourcelair/help/milestones{/number}","notifications_url":"https://api.github.com/repos/sourcelair/help/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sourcelair/help/labels{/name}","releases_url":"https://api.github.com/repos/sourcelair/help/releases{/id}","created_at":"2015-05-05T10:42:59Z","updated_at":"2015-05-08T08:23:29Z","pushed_at":"2015-11-14T17:13:17Z","git_url":"git://github.com/sourcelair/help.git","ssh_url":"git@github.com:sourcelair/help.git","clone_url":"https://github.com/sourcelair/help.git","svn_url":"https://github.com/sourcelair/help","homepage":"http://help.sourcelair.com","size":289,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/sourcelair/help/pulls/10"},"html":{"href":"https://github.com/sourcelair/help/pull/10"},"issue":{"href":"https://api.github.com/repos/sourcelair/help/issues/10"},"comments":{"href":"https://api.github.com/repos/sourcelair/help/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/sourcelair/help/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/sourcelair/help/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sourcelair/help/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/sourcelair/help/statuses/d4a48c8f5ad5612354252a7821ad9dbfba3d8885"}}}}