How to remove extra versions of python from Ubuntu 3.6
I have manually installed python 2.6.5 as I wanted to link it with special verison of OpenSSL. Things did not work at all. I removed OpenSSL and now I want to completely remove Python 3.6 and leave only the default Python 3.6.
I run: whereis
python and got:
python: /usr/bin/python2.7-config /usr/bin/python3.6 /usr/bin/python3.6m /usr/bin/python /usr/bin/python2.7 /usr/lib/python3.6 /usr/lib/python2.7 /usr/lib/python3.7 /etc/python3.6 /etc/python /etc/python2.7 /usr/local/bin/python3.6-config /usr/local/bin/python3.5m-config /usr/local/bin/python3.6 /usr/local/bin/python3.6m-config /usr/local/bin/python3.6m /usr/local/bin/python3.5-config /usr/local/bin/python3.5m /usr/local/bin/python3.5 /usr/local/lib/python3.6 /usr/local/lib/python2.7 /usr/local/lib/python3.5 /usr/include/python3.6m /usr/include/python2.7 /usr/share/python /usr/share/man/man1/python.1.gz
It seems to me there are multiple versions of Python 3.6? How can I delete all of them and just leave the default (system shipped one).
I am worried as I read that removing Python 3.6 from Ubuntu is dangerous. Please, help me.
EDIT:
The output of which python
command is:
/usr/bin/python
Then, if I ls -l
the above directory, I get:
lrwxrwxrwx 1 root root 9 Apr 16 2018 /usr/bin/python -> python2.7
Note that for me to run my programs I use python3
If I ls -l
the output of which python3
, I get:
lrwxrwxrwx 1 root root 9 Mar 15 05:41 /usr/bin/python3 -> python3.6
By running python --version
, I get:
Python 2.7.15rc1
And by running python3 --version
, I get:
Python 3.6.5
18.04 package-management python python3 software-uninstall
|
show 1 more comment
I have manually installed python 2.6.5 as I wanted to link it with special verison of OpenSSL. Things did not work at all. I removed OpenSSL and now I want to completely remove Python 3.6 and leave only the default Python 3.6.
I run: whereis
python and got:
python: /usr/bin/python2.7-config /usr/bin/python3.6 /usr/bin/python3.6m /usr/bin/python /usr/bin/python2.7 /usr/lib/python3.6 /usr/lib/python2.7 /usr/lib/python3.7 /etc/python3.6 /etc/python /etc/python2.7 /usr/local/bin/python3.6-config /usr/local/bin/python3.5m-config /usr/local/bin/python3.6 /usr/local/bin/python3.6m-config /usr/local/bin/python3.6m /usr/local/bin/python3.5-config /usr/local/bin/python3.5m /usr/local/bin/python3.5 /usr/local/lib/python3.6 /usr/local/lib/python2.7 /usr/local/lib/python3.5 /usr/include/python3.6m /usr/include/python2.7 /usr/share/python /usr/share/man/man1/python.1.gz
It seems to me there are multiple versions of Python 3.6? How can I delete all of them and just leave the default (system shipped one).
I am worried as I read that removing Python 3.6 from Ubuntu is dangerous. Please, help me.
EDIT:
The output of which python
command is:
/usr/bin/python
Then, if I ls -l
the above directory, I get:
lrwxrwxrwx 1 root root 9 Apr 16 2018 /usr/bin/python -> python2.7
Note that for me to run my programs I use python3
If I ls -l
the output of which python3
, I get:
lrwxrwxrwx 1 root root 9 Mar 15 05:41 /usr/bin/python3 -> python3.6
By running python --version
, I get:
Python 2.7.15rc1
And by running python3 --version
, I get:
Python 3.6.5
18.04 package-management python python3 software-uninstall
How did you install python 2.6.5 ? The way to un-install depends on installation method.
– Soren A
Mar 15 at 13:57
I installed one from the source. I mistakenly downloaded the source of another version 3.5.6 t and installed it. Then I deleted the directory of the source code for 3.5.6 after discovering it is the wrong version. How can I uninstall 3.5.6 and 3.6.5 if I deleted their source directory?
– user9371654
Mar 15 at 14:08
What's that output ofls -l `which python`
?
– Joshua K
Mar 15 at 14:57
1
I'm confused by "I want to completely remove Python 3.6 and leave only the default Python 3.6."
– Joshua K
Mar 16 at 5:03
1
if you installed from source, it should install to/usr/local
, not/usr/bin
. To uninstall go to the source directory and dosudo make uninstall
. if you deleted the source, download it again and unpack it before doing uninstall. Be aware that the two pythons in /user/bin are delivered with Ubuntu. Don't remove any of them, that will break your system !!!
– Soren A
Mar 16 at 10:30
|
show 1 more comment
I have manually installed python 2.6.5 as I wanted to link it with special verison of OpenSSL. Things did not work at all. I removed OpenSSL and now I want to completely remove Python 3.6 and leave only the default Python 3.6.
I run: whereis
python and got:
python: /usr/bin/python2.7-config /usr/bin/python3.6 /usr/bin/python3.6m /usr/bin/python /usr/bin/python2.7 /usr/lib/python3.6 /usr/lib/python2.7 /usr/lib/python3.7 /etc/python3.6 /etc/python /etc/python2.7 /usr/local/bin/python3.6-config /usr/local/bin/python3.5m-config /usr/local/bin/python3.6 /usr/local/bin/python3.6m-config /usr/local/bin/python3.6m /usr/local/bin/python3.5-config /usr/local/bin/python3.5m /usr/local/bin/python3.5 /usr/local/lib/python3.6 /usr/local/lib/python2.7 /usr/local/lib/python3.5 /usr/include/python3.6m /usr/include/python2.7 /usr/share/python /usr/share/man/man1/python.1.gz
It seems to me there are multiple versions of Python 3.6? How can I delete all of them and just leave the default (system shipped one).
I am worried as I read that removing Python 3.6 from Ubuntu is dangerous. Please, help me.
EDIT:
The output of which python
command is:
/usr/bin/python
Then, if I ls -l
the above directory, I get:
lrwxrwxrwx 1 root root 9 Apr 16 2018 /usr/bin/python -> python2.7
Note that for me to run my programs I use python3
If I ls -l
the output of which python3
, I get:
lrwxrwxrwx 1 root root 9 Mar 15 05:41 /usr/bin/python3 -> python3.6
By running python --version
, I get:
Python 2.7.15rc1
And by running python3 --version
, I get:
Python 3.6.5
18.04 package-management python python3 software-uninstall
I have manually installed python 2.6.5 as I wanted to link it with special verison of OpenSSL. Things did not work at all. I removed OpenSSL and now I want to completely remove Python 3.6 and leave only the default Python 3.6.
I run: whereis
python and got:
python: /usr/bin/python2.7-config /usr/bin/python3.6 /usr/bin/python3.6m /usr/bin/python /usr/bin/python2.7 /usr/lib/python3.6 /usr/lib/python2.7 /usr/lib/python3.7 /etc/python3.6 /etc/python /etc/python2.7 /usr/local/bin/python3.6-config /usr/local/bin/python3.5m-config /usr/local/bin/python3.6 /usr/local/bin/python3.6m-config /usr/local/bin/python3.6m /usr/local/bin/python3.5-config /usr/local/bin/python3.5m /usr/local/bin/python3.5 /usr/local/lib/python3.6 /usr/local/lib/python2.7 /usr/local/lib/python3.5 /usr/include/python3.6m /usr/include/python2.7 /usr/share/python /usr/share/man/man1/python.1.gz
It seems to me there are multiple versions of Python 3.6? How can I delete all of them and just leave the default (system shipped one).
I am worried as I read that removing Python 3.6 from Ubuntu is dangerous. Please, help me.
EDIT:
The output of which python
command is:
/usr/bin/python
Then, if I ls -l
the above directory, I get:
lrwxrwxrwx 1 root root 9 Apr 16 2018 /usr/bin/python -> python2.7
Note that for me to run my programs I use python3
If I ls -l
the output of which python3
, I get:
lrwxrwxrwx 1 root root 9 Mar 15 05:41 /usr/bin/python3 -> python3.6
By running python --version
, I get:
Python 2.7.15rc1
And by running python3 --version
, I get:
Python 3.6.5
18.04 package-management python python3 software-uninstall
18.04 package-management python python3 software-uninstall
edited Mar 15 at 17:48
user9371654
asked Mar 15 at 13:29
user9371654user9371654
18919
18919
How did you install python 2.6.5 ? The way to un-install depends on installation method.
– Soren A
Mar 15 at 13:57
I installed one from the source. I mistakenly downloaded the source of another version 3.5.6 t and installed it. Then I deleted the directory of the source code for 3.5.6 after discovering it is the wrong version. How can I uninstall 3.5.6 and 3.6.5 if I deleted their source directory?
– user9371654
Mar 15 at 14:08
What's that output ofls -l `which python`
?
– Joshua K
Mar 15 at 14:57
1
I'm confused by "I want to completely remove Python 3.6 and leave only the default Python 3.6."
– Joshua K
Mar 16 at 5:03
1
if you installed from source, it should install to/usr/local
, not/usr/bin
. To uninstall go to the source directory and dosudo make uninstall
. if you deleted the source, download it again and unpack it before doing uninstall. Be aware that the two pythons in /user/bin are delivered with Ubuntu. Don't remove any of them, that will break your system !!!
– Soren A
Mar 16 at 10:30
|
show 1 more comment
How did you install python 2.6.5 ? The way to un-install depends on installation method.
– Soren A
Mar 15 at 13:57
I installed one from the source. I mistakenly downloaded the source of another version 3.5.6 t and installed it. Then I deleted the directory of the source code for 3.5.6 after discovering it is the wrong version. How can I uninstall 3.5.6 and 3.6.5 if I deleted their source directory?
– user9371654
Mar 15 at 14:08
What's that output ofls -l `which python`
?
– Joshua K
Mar 15 at 14:57
1
I'm confused by "I want to completely remove Python 3.6 and leave only the default Python 3.6."
– Joshua K
Mar 16 at 5:03
1
if you installed from source, it should install to/usr/local
, not/usr/bin
. To uninstall go to the source directory and dosudo make uninstall
. if you deleted the source, download it again and unpack it before doing uninstall. Be aware that the two pythons in /user/bin are delivered with Ubuntu. Don't remove any of them, that will break your system !!!
– Soren A
Mar 16 at 10:30
How did you install python 2.6.5 ? The way to un-install depends on installation method.
– Soren A
Mar 15 at 13:57
How did you install python 2.6.5 ? The way to un-install depends on installation method.
– Soren A
Mar 15 at 13:57
I installed one from the source. I mistakenly downloaded the source of another version 3.5.6 t and installed it. Then I deleted the directory of the source code for 3.5.6 after discovering it is the wrong version. How can I uninstall 3.5.6 and 3.6.5 if I deleted their source directory?
– user9371654
Mar 15 at 14:08
I installed one from the source. I mistakenly downloaded the source of another version 3.5.6 t and installed it. Then I deleted the directory of the source code for 3.5.6 after discovering it is the wrong version. How can I uninstall 3.5.6 and 3.6.5 if I deleted their source directory?
– user9371654
Mar 15 at 14:08
What's that output of
ls -l `which python`
?– Joshua K
Mar 15 at 14:57
What's that output of
ls -l `which python`
?– Joshua K
Mar 15 at 14:57
1
1
I'm confused by "I want to completely remove Python 3.6 and leave only the default Python 3.6."
– Joshua K
Mar 16 at 5:03
I'm confused by "I want to completely remove Python 3.6 and leave only the default Python 3.6."
– Joshua K
Mar 16 at 5:03
1
1
if you installed from source, it should install to
/usr/local
, not /usr/bin
. To uninstall go to the source directory and do sudo make uninstall
. if you deleted the source, download it again and unpack it before doing uninstall. Be aware that the two pythons in /user/bin are delivered with Ubuntu. Don't remove any of them, that will break your system !!!– Soren A
Mar 16 at 10:30
if you installed from source, it should install to
/usr/local
, not /usr/bin
. To uninstall go to the source directory and do sudo make uninstall
. if you deleted the source, download it again and unpack it before doing uninstall. Be aware that the two pythons in /user/bin are delivered with Ubuntu. Don't remove any of them, that will break your system !!!– Soren A
Mar 16 at 10:30
|
show 1 more comment
0
active
oldest
votes
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%2f1125917%2fhow-to-remove-extra-versions-of-python-from-ubuntu-3-6%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
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%2f1125917%2fhow-to-remove-extra-versions-of-python-from-ubuntu-3-6%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
How did you install python 2.6.5 ? The way to un-install depends on installation method.
– Soren A
Mar 15 at 13:57
I installed one from the source. I mistakenly downloaded the source of another version 3.5.6 t and installed it. Then I deleted the directory of the source code for 3.5.6 after discovering it is the wrong version. How can I uninstall 3.5.6 and 3.6.5 if I deleted their source directory?
– user9371654
Mar 15 at 14:08
What's that output of
ls -l `which python`
?– Joshua K
Mar 15 at 14:57
1
I'm confused by "I want to completely remove Python 3.6 and leave only the default Python 3.6."
– Joshua K
Mar 16 at 5:03
1
if you installed from source, it should install to
/usr/local
, not/usr/bin
. To uninstall go to the source directory and dosudo make uninstall
. if you deleted the source, download it again and unpack it before doing uninstall. Be aware that the two pythons in /user/bin are delivered with Ubuntu. Don't remove any of them, that will break your system !!!– Soren A
Mar 16 at 10:30