Update Python 3.5 to 3.6 via terminal
Using Ubuntu 17.04. After update Python 3.5 to 3.6 via terminal according to https://askubuntu.com/a/865569/695385 still showing that version is 3.5.3.
~$ python3 --version
Python 3.5.3
How is this installed?
apt python3
add a comment |
Using Ubuntu 17.04. After update Python 3.5 to 3.6 via terminal according to https://askubuntu.com/a/865569/695385 still showing that version is 3.5.3.
~$ python3 --version
Python 3.5.3
How is this installed?
apt python3
1
How did you update it?
– edwinksl
Jun 6 '17 at 23:53
askubuntu.com/a/865569/695385
– Stanislav Voloshchuk
Jun 7 '17 at 0:19
Then you call it usingpython3.6
.python3
will remain symlinked topython3.5
and you should keep it that way. Look into virtual environments like Oli wrote in his answer.
– edwinksl
Jun 7 '17 at 0:41
Thanx, now I`ve to find out how to use virtualenv.
– Stanislav Voloshchuk
Jun 7 '17 at 0:47
add a comment |
Using Ubuntu 17.04. After update Python 3.5 to 3.6 via terminal according to https://askubuntu.com/a/865569/695385 still showing that version is 3.5.3.
~$ python3 --version
Python 3.5.3
How is this installed?
apt python3
Using Ubuntu 17.04. After update Python 3.5 to 3.6 via terminal according to https://askubuntu.com/a/865569/695385 still showing that version is 3.5.3.
~$ python3 --version
Python 3.5.3
How is this installed?
apt python3
apt python3
edited Aug 9 '18 at 10:28
Melebius
4,45751838
4,45751838
asked Jun 6 '17 at 23:18
Stanislav Voloshchuk
48116
48116
1
How did you update it?
– edwinksl
Jun 6 '17 at 23:53
askubuntu.com/a/865569/695385
– Stanislav Voloshchuk
Jun 7 '17 at 0:19
Then you call it usingpython3.6
.python3
will remain symlinked topython3.5
and you should keep it that way. Look into virtual environments like Oli wrote in his answer.
– edwinksl
Jun 7 '17 at 0:41
Thanx, now I`ve to find out how to use virtualenv.
– Stanislav Voloshchuk
Jun 7 '17 at 0:47
add a comment |
1
How did you update it?
– edwinksl
Jun 6 '17 at 23:53
askubuntu.com/a/865569/695385
– Stanislav Voloshchuk
Jun 7 '17 at 0:19
Then you call it usingpython3.6
.python3
will remain symlinked topython3.5
and you should keep it that way. Look into virtual environments like Oli wrote in his answer.
– edwinksl
Jun 7 '17 at 0:41
Thanx, now I`ve to find out how to use virtualenv.
– Stanislav Voloshchuk
Jun 7 '17 at 0:47
1
1
How did you update it?
– edwinksl
Jun 6 '17 at 23:53
How did you update it?
– edwinksl
Jun 6 '17 at 23:53
askubuntu.com/a/865569/695385
– Stanislav Voloshchuk
Jun 7 '17 at 0:19
askubuntu.com/a/865569/695385
– Stanislav Voloshchuk
Jun 7 '17 at 0:19
Then you call it using
python3.6
. python3
will remain symlinked to python3.5
and you should keep it that way. Look into virtual environments like Oli wrote in his answer.– edwinksl
Jun 7 '17 at 0:41
Then you call it using
python3.6
. python3
will remain symlinked to python3.5
and you should keep it that way. Look into virtual environments like Oli wrote in his answer.– edwinksl
Jun 7 '17 at 0:41
Thanx, now I`ve to find out how to use virtualenv.
– Stanislav Voloshchuk
Jun 7 '17 at 0:47
Thanx, now I`ve to find out how to use virtualenv.
– Stanislav Voloshchuk
Jun 7 '17 at 0:47
add a comment |
3 Answers
3
active
oldest
votes
How did you upgrade? I suspect you may have a python3.6
binary somewhere.
Generally speaking, you never want to replace /usr/bin/python
or /usr/bin/python3
with your own fruity versions. Important parts of Ubuntu require their stable Python environments, and largely speaking, that is incompatible with you mucking around.
That all said, having a /usr/bin/python3.6
(or /usr/local/bin/python3.6
, or whatever in your path) would be fine. If you don't want to type all that in each time, you might want to look at virtualenv
and the various wrapper automation options for it. This has the additional bonus of not threatening your system's site_packages
with your development work.
askubuntu.com/a/865569/695385
– Stanislav Voloshchuk
Jun 7 '17 at 0:20
add a comment |
I had the same problem, I did the following instruction to resolve it:
After install Python3.6:
To make python3
use the new installed Python 3.6 instead of the default 3.5 release, run following 2 commands:
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2
Finally, switch between the two Python versions for python3
via the following command:
sudo update-alternatives --config python3
Then select the /usr/bin/python3.6 -- automode
in choices menu, for me that was 0
row.
[Result]:
$ python3 -V
Python 3.6.6
Or:
$ python3 --version
Python 3.6.6
add a comment |
Installing and upgrading to Python3.6 requires the command
sudo apt-get upgrade python3.6
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%2f922853%2fupdate-python-3-5-to-3-6-via-terminal%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
How did you upgrade? I suspect you may have a python3.6
binary somewhere.
Generally speaking, you never want to replace /usr/bin/python
or /usr/bin/python3
with your own fruity versions. Important parts of Ubuntu require their stable Python environments, and largely speaking, that is incompatible with you mucking around.
That all said, having a /usr/bin/python3.6
(or /usr/local/bin/python3.6
, or whatever in your path) would be fine. If you don't want to type all that in each time, you might want to look at virtualenv
and the various wrapper automation options for it. This has the additional bonus of not threatening your system's site_packages
with your development work.
askubuntu.com/a/865569/695385
– Stanislav Voloshchuk
Jun 7 '17 at 0:20
add a comment |
How did you upgrade? I suspect you may have a python3.6
binary somewhere.
Generally speaking, you never want to replace /usr/bin/python
or /usr/bin/python3
with your own fruity versions. Important parts of Ubuntu require their stable Python environments, and largely speaking, that is incompatible with you mucking around.
That all said, having a /usr/bin/python3.6
(or /usr/local/bin/python3.6
, or whatever in your path) would be fine. If you don't want to type all that in each time, you might want to look at virtualenv
and the various wrapper automation options for it. This has the additional bonus of not threatening your system's site_packages
with your development work.
askubuntu.com/a/865569/695385
– Stanislav Voloshchuk
Jun 7 '17 at 0:20
add a comment |
How did you upgrade? I suspect you may have a python3.6
binary somewhere.
Generally speaking, you never want to replace /usr/bin/python
or /usr/bin/python3
with your own fruity versions. Important parts of Ubuntu require their stable Python environments, and largely speaking, that is incompatible with you mucking around.
That all said, having a /usr/bin/python3.6
(or /usr/local/bin/python3.6
, or whatever in your path) would be fine. If you don't want to type all that in each time, you might want to look at virtualenv
and the various wrapper automation options for it. This has the additional bonus of not threatening your system's site_packages
with your development work.
How did you upgrade? I suspect you may have a python3.6
binary somewhere.
Generally speaking, you never want to replace /usr/bin/python
or /usr/bin/python3
with your own fruity versions. Important parts of Ubuntu require their stable Python environments, and largely speaking, that is incompatible with you mucking around.
That all said, having a /usr/bin/python3.6
(or /usr/local/bin/python3.6
, or whatever in your path) would be fine. If you don't want to type all that in each time, you might want to look at virtualenv
and the various wrapper automation options for it. This has the additional bonus of not threatening your system's site_packages
with your development work.
answered Jun 6 '17 at 23:46
Oli♦
220k85557762
220k85557762
askubuntu.com/a/865569/695385
– Stanislav Voloshchuk
Jun 7 '17 at 0:20
add a comment |
askubuntu.com/a/865569/695385
– Stanislav Voloshchuk
Jun 7 '17 at 0:20
askubuntu.com/a/865569/695385
– Stanislav Voloshchuk
Jun 7 '17 at 0:20
askubuntu.com/a/865569/695385
– Stanislav Voloshchuk
Jun 7 '17 at 0:20
add a comment |
I had the same problem, I did the following instruction to resolve it:
After install Python3.6:
To make python3
use the new installed Python 3.6 instead of the default 3.5 release, run following 2 commands:
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2
Finally, switch between the two Python versions for python3
via the following command:
sudo update-alternatives --config python3
Then select the /usr/bin/python3.6 -- automode
in choices menu, for me that was 0
row.
[Result]:
$ python3 -V
Python 3.6.6
Or:
$ python3 --version
Python 3.6.6
add a comment |
I had the same problem, I did the following instruction to resolve it:
After install Python3.6:
To make python3
use the new installed Python 3.6 instead of the default 3.5 release, run following 2 commands:
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2
Finally, switch between the two Python versions for python3
via the following command:
sudo update-alternatives --config python3
Then select the /usr/bin/python3.6 -- automode
in choices menu, for me that was 0
row.
[Result]:
$ python3 -V
Python 3.6.6
Or:
$ python3 --version
Python 3.6.6
add a comment |
I had the same problem, I did the following instruction to resolve it:
After install Python3.6:
To make python3
use the new installed Python 3.6 instead of the default 3.5 release, run following 2 commands:
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2
Finally, switch between the two Python versions for python3
via the following command:
sudo update-alternatives --config python3
Then select the /usr/bin/python3.6 -- automode
in choices menu, for me that was 0
row.
[Result]:
$ python3 -V
Python 3.6.6
Or:
$ python3 --version
Python 3.6.6
I had the same problem, I did the following instruction to resolve it:
After install Python3.6:
To make python3
use the new installed Python 3.6 instead of the default 3.5 release, run following 2 commands:
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2
Finally, switch between the two Python versions for python3
via the following command:
sudo update-alternatives --config python3
Then select the /usr/bin/python3.6 -- automode
in choices menu, for me that was 0
row.
[Result]:
$ python3 -V
Python 3.6.6
Or:
$ python3 --version
Python 3.6.6
edited 2 days ago
answered Aug 9 '18 at 8:25
Benyamin Jafari
319214
319214
add a comment |
add a comment |
Installing and upgrading to Python3.6 requires the command
sudo apt-get upgrade python3.6
add a comment |
Installing and upgrading to Python3.6 requires the command
sudo apt-get upgrade python3.6
add a comment |
Installing and upgrading to Python3.6 requires the command
sudo apt-get upgrade python3.6
Installing and upgrading to Python3.6 requires the command
sudo apt-get upgrade python3.6
edited Jul 24 '18 at 14:37
Akshay L Aradhya
1034
1034
answered Jan 4 '18 at 16:28
Sreenath
111
111
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%2f922853%2fupdate-python-3-5-to-3-6-via-terminal%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
1
How did you update it?
– edwinksl
Jun 6 '17 at 23:53
askubuntu.com/a/865569/695385
– Stanislav Voloshchuk
Jun 7 '17 at 0:19
Then you call it using
python3.6
.python3
will remain symlinked topython3.5
and you should keep it that way. Look into virtual environments like Oli wrote in his answer.– edwinksl
Jun 7 '17 at 0:41
Thanx, now I`ve to find out how to use virtualenv.
– Stanislav Voloshchuk
Jun 7 '17 at 0:47