Change default python version in IDLE
So, I'd like to have Python 2.7.6 when I open the IDLE (that is the one pre-installed on Ubuntu); instead, the idle opens with the one that I have installed (2.7.5).
How can I do that?
python default idle-python
add a comment |
So, I'd like to have Python 2.7.6 when I open the IDLE (that is the one pre-installed on Ubuntu); instead, the idle opens with the one that I have installed (2.7.5).
How can I do that?
python default idle-python
add a comment |
So, I'd like to have Python 2.7.6 when I open the IDLE (that is the one pre-installed on Ubuntu); instead, the idle opens with the one that I have installed (2.7.5).
How can I do that?
python default idle-python
So, I'd like to have Python 2.7.6 when I open the IDLE (that is the one pre-installed on Ubuntu); instead, the idle opens with the one that I have installed (2.7.5).
How can I do that?
python default idle-python
python default idle-python
edited Sep 10 '15 at 15:17
Stefan Hamcke
4521622
4521622
asked Feb 22 '15 at 13:37
Stefano De Rosso
10113
10113
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
sudo nano /usr/bin/idle-python2.7
It looks like this
#! /usr/bin/python2.7
from idlelib.PyShell import main
if __name__ == '__main__':
main()
Change the end of the first line to reflect your desire.
#! /usr/bin/python2.7.6
^X
to save, and y
to consent.
Give it a whirl.
It doesn't work :(
– Stefano De Rosso
Feb 22 '15 at 14:10
@StefanoDeRosso, you still have Python 2.7.6 installed, right?
– Nodak
Feb 22 '15 at 16:34
I have Python 2.7.6 installed, and when I run it from the terminal it is the default one. I've changed it to the default using the "ln" command. Anyway, I've came through the problem - even though in an "alternative" way -, by uninstalling and reinstalling the IDLE in Ubuntu Software Center. In any case I'd like to resolve it the other way, too.
– Stefano De Rosso
Feb 22 '15 at 16:52
but when you execute/usr/bin/idle-python2.7
, modified or not, from the command line the idle is 2.7.5?
– Nodak
Feb 22 '15 at 16:53
hey hey, executing "/usr/bin/idle-python2.7", it works! It opens the IDLE for Python 2.7.6. But is there some way to make it happen only writing "idle" on the terminal?
– Stefano De Rosso
Feb 22 '15 at 16:55
|
show 4 more comments
If you need Python 2 just type idle
in terminal.
If you need Python3 type idle3
.
I have both Python2 and Python3 installed and also idle and idle3.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f588549%2fchange-default-python-version-in-idle%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
sudo nano /usr/bin/idle-python2.7
It looks like this
#! /usr/bin/python2.7
from idlelib.PyShell import main
if __name__ == '__main__':
main()
Change the end of the first line to reflect your desire.
#! /usr/bin/python2.7.6
^X
to save, and y
to consent.
Give it a whirl.
It doesn't work :(
– Stefano De Rosso
Feb 22 '15 at 14:10
@StefanoDeRosso, you still have Python 2.7.6 installed, right?
– Nodak
Feb 22 '15 at 16:34
I have Python 2.7.6 installed, and when I run it from the terminal it is the default one. I've changed it to the default using the "ln" command. Anyway, I've came through the problem - even though in an "alternative" way -, by uninstalling and reinstalling the IDLE in Ubuntu Software Center. In any case I'd like to resolve it the other way, too.
– Stefano De Rosso
Feb 22 '15 at 16:52
but when you execute/usr/bin/idle-python2.7
, modified or not, from the command line the idle is 2.7.5?
– Nodak
Feb 22 '15 at 16:53
hey hey, executing "/usr/bin/idle-python2.7", it works! It opens the IDLE for Python 2.7.6. But is there some way to make it happen only writing "idle" on the terminal?
– Stefano De Rosso
Feb 22 '15 at 16:55
|
show 4 more comments
sudo nano /usr/bin/idle-python2.7
It looks like this
#! /usr/bin/python2.7
from idlelib.PyShell import main
if __name__ == '__main__':
main()
Change the end of the first line to reflect your desire.
#! /usr/bin/python2.7.6
^X
to save, and y
to consent.
Give it a whirl.
It doesn't work :(
– Stefano De Rosso
Feb 22 '15 at 14:10
@StefanoDeRosso, you still have Python 2.7.6 installed, right?
– Nodak
Feb 22 '15 at 16:34
I have Python 2.7.6 installed, and when I run it from the terminal it is the default one. I've changed it to the default using the "ln" command. Anyway, I've came through the problem - even though in an "alternative" way -, by uninstalling and reinstalling the IDLE in Ubuntu Software Center. In any case I'd like to resolve it the other way, too.
– Stefano De Rosso
Feb 22 '15 at 16:52
but when you execute/usr/bin/idle-python2.7
, modified or not, from the command line the idle is 2.7.5?
– Nodak
Feb 22 '15 at 16:53
hey hey, executing "/usr/bin/idle-python2.7", it works! It opens the IDLE for Python 2.7.6. But is there some way to make it happen only writing "idle" on the terminal?
– Stefano De Rosso
Feb 22 '15 at 16:55
|
show 4 more comments
sudo nano /usr/bin/idle-python2.7
It looks like this
#! /usr/bin/python2.7
from idlelib.PyShell import main
if __name__ == '__main__':
main()
Change the end of the first line to reflect your desire.
#! /usr/bin/python2.7.6
^X
to save, and y
to consent.
Give it a whirl.
sudo nano /usr/bin/idle-python2.7
It looks like this
#! /usr/bin/python2.7
from idlelib.PyShell import main
if __name__ == '__main__':
main()
Change the end of the first line to reflect your desire.
#! /usr/bin/python2.7.6
^X
to save, and y
to consent.
Give it a whirl.
answered Feb 22 '15 at 13:51
Nodak
54039
54039
It doesn't work :(
– Stefano De Rosso
Feb 22 '15 at 14:10
@StefanoDeRosso, you still have Python 2.7.6 installed, right?
– Nodak
Feb 22 '15 at 16:34
I have Python 2.7.6 installed, and when I run it from the terminal it is the default one. I've changed it to the default using the "ln" command. Anyway, I've came through the problem - even though in an "alternative" way -, by uninstalling and reinstalling the IDLE in Ubuntu Software Center. In any case I'd like to resolve it the other way, too.
– Stefano De Rosso
Feb 22 '15 at 16:52
but when you execute/usr/bin/idle-python2.7
, modified or not, from the command line the idle is 2.7.5?
– Nodak
Feb 22 '15 at 16:53
hey hey, executing "/usr/bin/idle-python2.7", it works! It opens the IDLE for Python 2.7.6. But is there some way to make it happen only writing "idle" on the terminal?
– Stefano De Rosso
Feb 22 '15 at 16:55
|
show 4 more comments
It doesn't work :(
– Stefano De Rosso
Feb 22 '15 at 14:10
@StefanoDeRosso, you still have Python 2.7.6 installed, right?
– Nodak
Feb 22 '15 at 16:34
I have Python 2.7.6 installed, and when I run it from the terminal it is the default one. I've changed it to the default using the "ln" command. Anyway, I've came through the problem - even though in an "alternative" way -, by uninstalling and reinstalling the IDLE in Ubuntu Software Center. In any case I'd like to resolve it the other way, too.
– Stefano De Rosso
Feb 22 '15 at 16:52
but when you execute/usr/bin/idle-python2.7
, modified or not, from the command line the idle is 2.7.5?
– Nodak
Feb 22 '15 at 16:53
hey hey, executing "/usr/bin/idle-python2.7", it works! It opens the IDLE for Python 2.7.6. But is there some way to make it happen only writing "idle" on the terminal?
– Stefano De Rosso
Feb 22 '15 at 16:55
It doesn't work :(
– Stefano De Rosso
Feb 22 '15 at 14:10
It doesn't work :(
– Stefano De Rosso
Feb 22 '15 at 14:10
@StefanoDeRosso, you still have Python 2.7.6 installed, right?
– Nodak
Feb 22 '15 at 16:34
@StefanoDeRosso, you still have Python 2.7.6 installed, right?
– Nodak
Feb 22 '15 at 16:34
I have Python 2.7.6 installed, and when I run it from the terminal it is the default one. I've changed it to the default using the "ln" command. Anyway, I've came through the problem - even though in an "alternative" way -, by uninstalling and reinstalling the IDLE in Ubuntu Software Center. In any case I'd like to resolve it the other way, too.
– Stefano De Rosso
Feb 22 '15 at 16:52
I have Python 2.7.6 installed, and when I run it from the terminal it is the default one. I've changed it to the default using the "ln" command. Anyway, I've came through the problem - even though in an "alternative" way -, by uninstalling and reinstalling the IDLE in Ubuntu Software Center. In any case I'd like to resolve it the other way, too.
– Stefano De Rosso
Feb 22 '15 at 16:52
but when you execute
/usr/bin/idle-python2.7
, modified or not, from the command line the idle is 2.7.5?– Nodak
Feb 22 '15 at 16:53
but when you execute
/usr/bin/idle-python2.7
, modified or not, from the command line the idle is 2.7.5?– Nodak
Feb 22 '15 at 16:53
hey hey, executing "/usr/bin/idle-python2.7", it works! It opens the IDLE for Python 2.7.6. But is there some way to make it happen only writing "idle" on the terminal?
– Stefano De Rosso
Feb 22 '15 at 16:55
hey hey, executing "/usr/bin/idle-python2.7", it works! It opens the IDLE for Python 2.7.6. But is there some way to make it happen only writing "idle" on the terminal?
– Stefano De Rosso
Feb 22 '15 at 16:55
|
show 4 more comments
If you need Python 2 just type idle
in terminal.
If you need Python3 type idle3
.
I have both Python2 and Python3 installed and also idle and idle3.
add a comment |
If you need Python 2 just type idle
in terminal.
If you need Python3 type idle3
.
I have both Python2 and Python3 installed and also idle and idle3.
add a comment |
If you need Python 2 just type idle
in terminal.
If you need Python3 type idle3
.
I have both Python2 and Python3 installed and also idle and idle3.
If you need Python 2 just type idle
in terminal.
If you need Python3 type idle3
.
I have both Python2 and Python3 installed and also idle and idle3.
edited Dec 16 '16 at 8:13
d a i s y
3,27082344
3,27082344
answered Dec 16 '16 at 3:46
EMAVE
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f588549%2fchange-default-python-version-in-idle%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown