How to solve these error while installing python3-pip on ubuntu16.04?
When I run the commannd sudo apt install python3-pip
on Ubuntu 16.04 I got these errors
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python3-pip : Depends: python-pip-whl (= 8.1.1-2) but 8.1.1-2ubuntu0.4 is to be installed
Recommends: python3-dev (>= 3.2) but it is not going to be installed
Recommends: python3-wheel but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
package-management
|
show 8 more comments
When I run the commannd sudo apt install python3-pip
on Ubuntu 16.04 I got these errors
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python3-pip : Depends: python-pip-whl (= 8.1.1-2) but 8.1.1-2ubuntu0.4 is to be installed
Recommends: python3-dev (>= 3.2) but it is not going to be installed
Recommends: python3-wheel but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
package-management
1
First please copy and paste the error from your console and add to your post. Now run this from terminal:sudo apt -f install && sudo apt update && sudo apt dist-upgrade
after thatsudo apt install python3-pip
.
– George Udosen
Jan 1 '17 at 3:35
What does this comands do? Will you please describe throughly?
– Darkhorse kafle
Jan 1 '17 at 3:37
The first fixes the broken package issue, then it updates and after that we do normal install assuming broken packages were fixed by the previous commands. The&&
means only run next command, if and only if previous one was successful.
– George Udosen
Jan 1 '17 at 3:38
Didnot worked for me!
– Darkhorse kafle
Jan 1 '17 at 3:42
Which of the commands did not work ? Update your answer with the error you got.
– George Udosen
Jan 1 '17 at 3:43
|
show 8 more comments
When I run the commannd sudo apt install python3-pip
on Ubuntu 16.04 I got these errors
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python3-pip : Depends: python-pip-whl (= 8.1.1-2) but 8.1.1-2ubuntu0.4 is to be installed
Recommends: python3-dev (>= 3.2) but it is not going to be installed
Recommends: python3-wheel but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
package-management
When I run the commannd sudo apt install python3-pip
on Ubuntu 16.04 I got these errors
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python3-pip : Depends: python-pip-whl (= 8.1.1-2) but 8.1.1-2ubuntu0.4 is to be installed
Recommends: python3-dev (>= 3.2) but it is not going to be installed
Recommends: python3-wheel but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
package-management
package-management
edited Jan 1 '17 at 7:13
George Udosen
20.4k94367
20.4k94367
asked Jan 1 '17 at 3:29
Darkhorse kafleDarkhorse kafle
5119
5119
1
First please copy and paste the error from your console and add to your post. Now run this from terminal:sudo apt -f install && sudo apt update && sudo apt dist-upgrade
after thatsudo apt install python3-pip
.
– George Udosen
Jan 1 '17 at 3:35
What does this comands do? Will you please describe throughly?
– Darkhorse kafle
Jan 1 '17 at 3:37
The first fixes the broken package issue, then it updates and after that we do normal install assuming broken packages were fixed by the previous commands. The&&
means only run next command, if and only if previous one was successful.
– George Udosen
Jan 1 '17 at 3:38
Didnot worked for me!
– Darkhorse kafle
Jan 1 '17 at 3:42
Which of the commands did not work ? Update your answer with the error you got.
– George Udosen
Jan 1 '17 at 3:43
|
show 8 more comments
1
First please copy and paste the error from your console and add to your post. Now run this from terminal:sudo apt -f install && sudo apt update && sudo apt dist-upgrade
after thatsudo apt install python3-pip
.
– George Udosen
Jan 1 '17 at 3:35
What does this comands do? Will you please describe throughly?
– Darkhorse kafle
Jan 1 '17 at 3:37
The first fixes the broken package issue, then it updates and after that we do normal install assuming broken packages were fixed by the previous commands. The&&
means only run next command, if and only if previous one was successful.
– George Udosen
Jan 1 '17 at 3:38
Didnot worked for me!
– Darkhorse kafle
Jan 1 '17 at 3:42
Which of the commands did not work ? Update your answer with the error you got.
– George Udosen
Jan 1 '17 at 3:43
1
1
First please copy and paste the error from your console and add to your post. Now run this from terminal:
sudo apt -f install && sudo apt update && sudo apt dist-upgrade
after that sudo apt install python3-pip
.– George Udosen
Jan 1 '17 at 3:35
First please copy and paste the error from your console and add to your post. Now run this from terminal:
sudo apt -f install && sudo apt update && sudo apt dist-upgrade
after that sudo apt install python3-pip
.– George Udosen
Jan 1 '17 at 3:35
What does this comands do? Will you please describe throughly?
– Darkhorse kafle
Jan 1 '17 at 3:37
What does this comands do? Will you please describe throughly?
– Darkhorse kafle
Jan 1 '17 at 3:37
The first fixes the broken package issue, then it updates and after that we do normal install assuming broken packages were fixed by the previous commands. The
&&
means only run next command, if and only if previous one was successful.– George Udosen
Jan 1 '17 at 3:38
The first fixes the broken package issue, then it updates and after that we do normal install assuming broken packages were fixed by the previous commands. The
&&
means only run next command, if and only if previous one was successful.– George Udosen
Jan 1 '17 at 3:38
Didnot worked for me!
– Darkhorse kafle
Jan 1 '17 at 3:42
Didnot worked for me!
– Darkhorse kafle
Jan 1 '17 at 3:42
Which of the commands did not work ? Update your answer with the error you got.
– George Udosen
Jan 1 '17 at 3:43
Which of the commands did not work ? Update your answer with the error you got.
– George Udosen
Jan 1 '17 at 3:43
|
show 8 more comments
3 Answers
3
active
oldest
votes
After having a lot of google search i was finally able to install pip3 on my ubuntu 16.04 machine by simply running these lines of code
1.sudo apt-get install python3-setuptools
2.sudo easy_install3 pip
add a comment |
You have broken packages so use these steps:
Fix broken packages:
sudo apt -f install
Update:
sudo apt update && sudo apt dist-upgrade
Now install normally:
sudo apt install python3-pip
Check if it installed:
pip3 --version
That should fix that.
Copy it and paste it as text not an image ? And that is still the first image you posted.
– George Udosen
Jan 1 '17 at 4:10
0
doesn't mean error, simply means there's nothing to upgrade. Now what didpip3 --version
give you ?
– George Udosen
Jan 1 '17 at 4:16
Use your mouse to highlight the text in the terminal, then right click and select copy. After that come back to your your post and update your question with it.
– George Udosen
Jan 1 '17 at 4:18
Dark house don't screen shot the errors,instead just copy and paste them!!any way,what errors did my solution throw?
– Arduino_Sentinel
Jan 1 '17 at 4:29
DON'T POST IMAGES IN COMMENTS, I HAVE GIVEN DIRECTIONS ON HOW TO COPY TEXTS FROM THE CONSOLE PLEASE FOLLOW THAT
– George Udosen
Jan 1 '17 at 4:29
|
show 6 more comments
just remove the python-pip-whl package and try again:
sudo apt-get remove python-pip-whl
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%2f866667%2fhow-to-solve-these-error-while-installing-python3-pip-on-ubuntu16-04%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
After having a lot of google search i was finally able to install pip3 on my ubuntu 16.04 machine by simply running these lines of code
1.sudo apt-get install python3-setuptools
2.sudo easy_install3 pip
add a comment |
After having a lot of google search i was finally able to install pip3 on my ubuntu 16.04 machine by simply running these lines of code
1.sudo apt-get install python3-setuptools
2.sudo easy_install3 pip
add a comment |
After having a lot of google search i was finally able to install pip3 on my ubuntu 16.04 machine by simply running these lines of code
1.sudo apt-get install python3-setuptools
2.sudo easy_install3 pip
After having a lot of google search i was finally able to install pip3 on my ubuntu 16.04 machine by simply running these lines of code
1.sudo apt-get install python3-setuptools
2.sudo easy_install3 pip
answered Jan 11 '17 at 6:04
Darkhorse kafleDarkhorse kafle
5119
5119
add a comment |
add a comment |
You have broken packages so use these steps:
Fix broken packages:
sudo apt -f install
Update:
sudo apt update && sudo apt dist-upgrade
Now install normally:
sudo apt install python3-pip
Check if it installed:
pip3 --version
That should fix that.
Copy it and paste it as text not an image ? And that is still the first image you posted.
– George Udosen
Jan 1 '17 at 4:10
0
doesn't mean error, simply means there's nothing to upgrade. Now what didpip3 --version
give you ?
– George Udosen
Jan 1 '17 at 4:16
Use your mouse to highlight the text in the terminal, then right click and select copy. After that come back to your your post and update your question with it.
– George Udosen
Jan 1 '17 at 4:18
Dark house don't screen shot the errors,instead just copy and paste them!!any way,what errors did my solution throw?
– Arduino_Sentinel
Jan 1 '17 at 4:29
DON'T POST IMAGES IN COMMENTS, I HAVE GIVEN DIRECTIONS ON HOW TO COPY TEXTS FROM THE CONSOLE PLEASE FOLLOW THAT
– George Udosen
Jan 1 '17 at 4:29
|
show 6 more comments
You have broken packages so use these steps:
Fix broken packages:
sudo apt -f install
Update:
sudo apt update && sudo apt dist-upgrade
Now install normally:
sudo apt install python3-pip
Check if it installed:
pip3 --version
That should fix that.
Copy it and paste it as text not an image ? And that is still the first image you posted.
– George Udosen
Jan 1 '17 at 4:10
0
doesn't mean error, simply means there's nothing to upgrade. Now what didpip3 --version
give you ?
– George Udosen
Jan 1 '17 at 4:16
Use your mouse to highlight the text in the terminal, then right click and select copy. After that come back to your your post and update your question with it.
– George Udosen
Jan 1 '17 at 4:18
Dark house don't screen shot the errors,instead just copy and paste them!!any way,what errors did my solution throw?
– Arduino_Sentinel
Jan 1 '17 at 4:29
DON'T POST IMAGES IN COMMENTS, I HAVE GIVEN DIRECTIONS ON HOW TO COPY TEXTS FROM THE CONSOLE PLEASE FOLLOW THAT
– George Udosen
Jan 1 '17 at 4:29
|
show 6 more comments
You have broken packages so use these steps:
Fix broken packages:
sudo apt -f install
Update:
sudo apt update && sudo apt dist-upgrade
Now install normally:
sudo apt install python3-pip
Check if it installed:
pip3 --version
That should fix that.
You have broken packages so use these steps:
Fix broken packages:
sudo apt -f install
Update:
sudo apt update && sudo apt dist-upgrade
Now install normally:
sudo apt install python3-pip
Check if it installed:
pip3 --version
That should fix that.
answered Jan 1 '17 at 3:54
George UdosenGeorge Udosen
20.4k94367
20.4k94367
Copy it and paste it as text not an image ? And that is still the first image you posted.
– George Udosen
Jan 1 '17 at 4:10
0
doesn't mean error, simply means there's nothing to upgrade. Now what didpip3 --version
give you ?
– George Udosen
Jan 1 '17 at 4:16
Use your mouse to highlight the text in the terminal, then right click and select copy. After that come back to your your post and update your question with it.
– George Udosen
Jan 1 '17 at 4:18
Dark house don't screen shot the errors,instead just copy and paste them!!any way,what errors did my solution throw?
– Arduino_Sentinel
Jan 1 '17 at 4:29
DON'T POST IMAGES IN COMMENTS, I HAVE GIVEN DIRECTIONS ON HOW TO COPY TEXTS FROM THE CONSOLE PLEASE FOLLOW THAT
– George Udosen
Jan 1 '17 at 4:29
|
show 6 more comments
Copy it and paste it as text not an image ? And that is still the first image you posted.
– George Udosen
Jan 1 '17 at 4:10
0
doesn't mean error, simply means there's nothing to upgrade. Now what didpip3 --version
give you ?
– George Udosen
Jan 1 '17 at 4:16
Use your mouse to highlight the text in the terminal, then right click and select copy. After that come back to your your post and update your question with it.
– George Udosen
Jan 1 '17 at 4:18
Dark house don't screen shot the errors,instead just copy and paste them!!any way,what errors did my solution throw?
– Arduino_Sentinel
Jan 1 '17 at 4:29
DON'T POST IMAGES IN COMMENTS, I HAVE GIVEN DIRECTIONS ON HOW TO COPY TEXTS FROM THE CONSOLE PLEASE FOLLOW THAT
– George Udosen
Jan 1 '17 at 4:29
Copy it and paste it as text not an image ? And that is still the first image you posted.
– George Udosen
Jan 1 '17 at 4:10
Copy it and paste it as text not an image ? And that is still the first image you posted.
– George Udosen
Jan 1 '17 at 4:10
0
doesn't mean error, simply means there's nothing to upgrade. Now what did pip3 --version
give you ?– George Udosen
Jan 1 '17 at 4:16
0
doesn't mean error, simply means there's nothing to upgrade. Now what did pip3 --version
give you ?– George Udosen
Jan 1 '17 at 4:16
Use your mouse to highlight the text in the terminal, then right click and select copy. After that come back to your your post and update your question with it.
– George Udosen
Jan 1 '17 at 4:18
Use your mouse to highlight the text in the terminal, then right click and select copy. After that come back to your your post and update your question with it.
– George Udosen
Jan 1 '17 at 4:18
Dark house don't screen shot the errors,instead just copy and paste them!!any way,what errors did my solution throw?
– Arduino_Sentinel
Jan 1 '17 at 4:29
Dark house don't screen shot the errors,instead just copy and paste them!!any way,what errors did my solution throw?
– Arduino_Sentinel
Jan 1 '17 at 4:29
DON'T POST IMAGES IN COMMENTS, I HAVE GIVEN DIRECTIONS ON HOW TO COPY TEXTS FROM THE CONSOLE PLEASE FOLLOW THAT
– George Udosen
Jan 1 '17 at 4:29
DON'T POST IMAGES IN COMMENTS, I HAVE GIVEN DIRECTIONS ON HOW TO COPY TEXTS FROM THE CONSOLE PLEASE FOLLOW THAT
– George Udosen
Jan 1 '17 at 4:29
|
show 6 more comments
just remove the python-pip-whl package and try again:
sudo apt-get remove python-pip-whl
add a comment |
just remove the python-pip-whl package and try again:
sudo apt-get remove python-pip-whl
add a comment |
just remove the python-pip-whl package and try again:
sudo apt-get remove python-pip-whl
just remove the python-pip-whl package and try again:
sudo apt-get remove python-pip-whl
answered Jan 3 at 10:06
Idan OriIdan Ori
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.
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%2f866667%2fhow-to-solve-these-error-while-installing-python3-pip-on-ubuntu16-04%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
First please copy and paste the error from your console and add to your post. Now run this from terminal:
sudo apt -f install && sudo apt update && sudo apt dist-upgrade
after thatsudo apt install python3-pip
.– George Udosen
Jan 1 '17 at 3:35
What does this comands do? Will you please describe throughly?
– Darkhorse kafle
Jan 1 '17 at 3:37
The first fixes the broken package issue, then it updates and after that we do normal install assuming broken packages were fixed by the previous commands. The
&&
means only run next command, if and only if previous one was successful.– George Udosen
Jan 1 '17 at 3:38
Didnot worked for me!
– Darkhorse kafle
Jan 1 '17 at 3:42
Which of the commands did not work ? Update your answer with the error you got.
– George Udosen
Jan 1 '17 at 3:43