Problem in installing pip in Ubuntu 16.04⠀

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












Problem in installing pip in Ubuntu 16.04 . It installed correctly I guess, but when I checked through pip -V then it shows this error:



anshul@ANSHUL:~$ sudo apt-get install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
python-pip
0 upgraded, 1 newly installed, 0 to remove and 15 not upgraded.
Need to get 0 B/144 kB of archives.
After this operation, 635 kB of additional disk space will be used.
Selecting previously unselected package python-pip.
(Reading database ... 282702 files and directories currently installed.)
Preparing to unpack .../python-pip_8.1.1-2ubuntu0.4_all.deb ...
Unpacking python-pip (8.1.1-2ubuntu0.4) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up python-pip (8.1.1-2ubuntu0.4) ...
anshul@ANSHUL:~$ pip -V
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
from pip import main
ImportError: cannot import name main






share|improve this question





















  • I have done the same steps but still, I m getting same error when i'm checking pip -V
    – Anshul Goyal
    Jun 2 at 5:46














up vote
0
down vote

favorite












Problem in installing pip in Ubuntu 16.04 . It installed correctly I guess, but when I checked through pip -V then it shows this error:



anshul@ANSHUL:~$ sudo apt-get install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
python-pip
0 upgraded, 1 newly installed, 0 to remove and 15 not upgraded.
Need to get 0 B/144 kB of archives.
After this operation, 635 kB of additional disk space will be used.
Selecting previously unselected package python-pip.
(Reading database ... 282702 files and directories currently installed.)
Preparing to unpack .../python-pip_8.1.1-2ubuntu0.4_all.deb ...
Unpacking python-pip (8.1.1-2ubuntu0.4) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up python-pip (8.1.1-2ubuntu0.4) ...
anshul@ANSHUL:~$ pip -V
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
from pip import main
ImportError: cannot import name main






share|improve this question





















  • I have done the same steps but still, I m getting same error when i'm checking pip -V
    – Anshul Goyal
    Jun 2 at 5:46












up vote
0
down vote

favorite









up vote
0
down vote

favorite











Problem in installing pip in Ubuntu 16.04 . It installed correctly I guess, but when I checked through pip -V then it shows this error:



anshul@ANSHUL:~$ sudo apt-get install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
python-pip
0 upgraded, 1 newly installed, 0 to remove and 15 not upgraded.
Need to get 0 B/144 kB of archives.
After this operation, 635 kB of additional disk space will be used.
Selecting previously unselected package python-pip.
(Reading database ... 282702 files and directories currently installed.)
Preparing to unpack .../python-pip_8.1.1-2ubuntu0.4_all.deb ...
Unpacking python-pip (8.1.1-2ubuntu0.4) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up python-pip (8.1.1-2ubuntu0.4) ...
anshul@ANSHUL:~$ pip -V
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
from pip import main
ImportError: cannot import name main






share|improve this question













Problem in installing pip in Ubuntu 16.04 . It installed correctly I guess, but when I checked through pip -V then it shows this error:



anshul@ANSHUL:~$ sudo apt-get install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
python-pip
0 upgraded, 1 newly installed, 0 to remove and 15 not upgraded.
Need to get 0 B/144 kB of archives.
After this operation, 635 kB of additional disk space will be used.
Selecting previously unselected package python-pip.
(Reading database ... 282702 files and directories currently installed.)
Preparing to unpack .../python-pip_8.1.1-2ubuntu0.4_all.deb ...
Unpacking python-pip (8.1.1-2ubuntu0.4) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up python-pip (8.1.1-2ubuntu0.4) ...
anshul@ANSHUL:~$ pip -V
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
from pip import main
ImportError: cannot import name main








share|improve this question












share|improve this question




share|improve this question








edited Jun 2 at 4:19









karel

49.5k11105126




49.5k11105126









asked Jun 2 at 4:14









Anshul Goyal

1




1











  • I have done the same steps but still, I m getting same error when i'm checking pip -V
    – Anshul Goyal
    Jun 2 at 5:46
















  • I have done the same steps but still, I m getting same error when i'm checking pip -V
    – Anshul Goyal
    Jun 2 at 5:46















I have done the same steps but still, I m getting same error when i'm checking pip -V
– Anshul Goyal
Jun 2 at 5:46




I have done the same steps but still, I m getting same error when i'm checking pip -V
– Anshul Goyal
Jun 2 at 5:46










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Try Purging and Installing pip again. i can see that the files where not downloaded from repository it is installing using the cache from the temp which is already downloaded. i am suggesting to make a clean install that might help.
first purge pip and do a autoclean and autoremove on the apt and then try installing again.






share|improve this answer





















  • I have tried this but getting same error: anshul@ANSHUL:~$ pip -V Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> from pip import main ImportError: cannot import name main anshul@ANSHUL:~$ which pip /usr/bin/pip
    – Anshul Goyal
    Jun 2 at 8:28











  • Then try reinstalling Python or try pip for Python 3
    – Ghostranger
    Jun 2 at 9:16










  • PIP issues github.com/pypa/pip/issues/5240
    – Knud Larsen
    Jun 2 at 18:12










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',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1042815%2fproblem-in-installing-pip-in-ubuntu-16-04%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













Try Purging and Installing pip again. i can see that the files where not downloaded from repository it is installing using the cache from the temp which is already downloaded. i am suggesting to make a clean install that might help.
first purge pip and do a autoclean and autoremove on the apt and then try installing again.






share|improve this answer





















  • I have tried this but getting same error: anshul@ANSHUL:~$ pip -V Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> from pip import main ImportError: cannot import name main anshul@ANSHUL:~$ which pip /usr/bin/pip
    – Anshul Goyal
    Jun 2 at 8:28











  • Then try reinstalling Python or try pip for Python 3
    – Ghostranger
    Jun 2 at 9:16










  • PIP issues github.com/pypa/pip/issues/5240
    – Knud Larsen
    Jun 2 at 18:12














up vote
0
down vote













Try Purging and Installing pip again. i can see that the files where not downloaded from repository it is installing using the cache from the temp which is already downloaded. i am suggesting to make a clean install that might help.
first purge pip and do a autoclean and autoremove on the apt and then try installing again.






share|improve this answer





















  • I have tried this but getting same error: anshul@ANSHUL:~$ pip -V Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> from pip import main ImportError: cannot import name main anshul@ANSHUL:~$ which pip /usr/bin/pip
    – Anshul Goyal
    Jun 2 at 8:28











  • Then try reinstalling Python or try pip for Python 3
    – Ghostranger
    Jun 2 at 9:16










  • PIP issues github.com/pypa/pip/issues/5240
    – Knud Larsen
    Jun 2 at 18:12












up vote
0
down vote










up vote
0
down vote









Try Purging and Installing pip again. i can see that the files where not downloaded from repository it is installing using the cache from the temp which is already downloaded. i am suggesting to make a clean install that might help.
first purge pip and do a autoclean and autoremove on the apt and then try installing again.






share|improve this answer













Try Purging and Installing pip again. i can see that the files where not downloaded from repository it is installing using the cache from the temp which is already downloaded. i am suggesting to make a clean install that might help.
first purge pip and do a autoclean and autoremove on the apt and then try installing again.







share|improve this answer













share|improve this answer



share|improve this answer











answered Jun 2 at 6:22









Ghostranger

345




345











  • I have tried this but getting same error: anshul@ANSHUL:~$ pip -V Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> from pip import main ImportError: cannot import name main anshul@ANSHUL:~$ which pip /usr/bin/pip
    – Anshul Goyal
    Jun 2 at 8:28











  • Then try reinstalling Python or try pip for Python 3
    – Ghostranger
    Jun 2 at 9:16










  • PIP issues github.com/pypa/pip/issues/5240
    – Knud Larsen
    Jun 2 at 18:12
















  • I have tried this but getting same error: anshul@ANSHUL:~$ pip -V Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> from pip import main ImportError: cannot import name main anshul@ANSHUL:~$ which pip /usr/bin/pip
    – Anshul Goyal
    Jun 2 at 8:28











  • Then try reinstalling Python or try pip for Python 3
    – Ghostranger
    Jun 2 at 9:16










  • PIP issues github.com/pypa/pip/issues/5240
    – Knud Larsen
    Jun 2 at 18:12















I have tried this but getting same error: anshul@ANSHUL:~$ pip -V Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> from pip import main ImportError: cannot import name main anshul@ANSHUL:~$ which pip /usr/bin/pip
– Anshul Goyal
Jun 2 at 8:28





I have tried this but getting same error: anshul@ANSHUL:~$ pip -V Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> from pip import main ImportError: cannot import name main anshul@ANSHUL:~$ which pip /usr/bin/pip
– Anshul Goyal
Jun 2 at 8:28













Then try reinstalling Python or try pip for Python 3
– Ghostranger
Jun 2 at 9:16




Then try reinstalling Python or try pip for Python 3
– Ghostranger
Jun 2 at 9:16












PIP issues github.com/pypa/pip/issues/5240
– Knud Larsen
Jun 2 at 18:12




PIP issues github.com/pypa/pip/issues/5240
– Knud Larsen
Jun 2 at 18:12












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1042815%2fproblem-in-installing-pip-in-ubuntu-16-04%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Which professions warranted travel in Medieval times?

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error