Pipenv-Error: ModuleNotFoundError: No module named 'pip._internal'
Today, I installed Pipenv via
pip install pipenv
As mentioned in the documentation I went to a test directory and created a new virtual environment using
pipenv shell
and tried to install a package via
pipenv install numpy
I got the following error message:
Installing numpy…
⠧
Error: An error occurred while installing numpy!
Traceback (most recent call last):
File "/Users/florian/.local/share/virtualenvs/test-bJfQ6Jzk/bin/pip", line 7, in <module>
from pip._internal import main
ModuleNotFoundError: No module named 'pip._internal'
This error occurs even after reinstalling pipenv, deleting all files and recreate the environment. It also had no impact if I ran pipenv install numpy
inside or outside the environment.
Python 3.6.3
Pipenv 11.10.1
Thank you in advance.
python python-3.x pipenv
|
show 2 more comments
Today, I installed Pipenv via
pip install pipenv
As mentioned in the documentation I went to a test directory and created a new virtual environment using
pipenv shell
and tried to install a package via
pipenv install numpy
I got the following error message:
Installing numpy…
⠧
Error: An error occurred while installing numpy!
Traceback (most recent call last):
File "/Users/florian/.local/share/virtualenvs/test-bJfQ6Jzk/bin/pip", line 7, in <module>
from pip._internal import main
ModuleNotFoundError: No module named 'pip._internal'
This error occurs even after reinstalling pipenv, deleting all files and recreate the environment. It also had no impact if I ran pipenv install numpy
inside or outside the environment.
Python 3.6.3
Pipenv 11.10.1
Thank you in advance.
python python-3.x pipenv
Try force reinstallingpipenv
. This error is encountered while updatingpip
too.--force-reinstall
i.e.
– Ganesh K
May 2 '18 at 13:05
Actually my bad, such an option ain't there. Try an update on all your packages and then reinstall, in their main repo, they say the same
– Ganesh K
May 2 '18 at 13:07
I solved the problem by completely removing pip and reinstalling it. Thank you anyway for your fast responses!
– Train
May 2 '18 at 13:19
No problem. Edit your question to include the answer as others might benefit too.
– Ganesh K
May 2 '18 at 16:12
@Train Any chance you could add the solution as an answer, then accept it? That helps keep the site tidy and avoids an answered question looking like it still needs an answer.
– Josh
May 3 '18 at 22:42
|
show 2 more comments
Today, I installed Pipenv via
pip install pipenv
As mentioned in the documentation I went to a test directory and created a new virtual environment using
pipenv shell
and tried to install a package via
pipenv install numpy
I got the following error message:
Installing numpy…
⠧
Error: An error occurred while installing numpy!
Traceback (most recent call last):
File "/Users/florian/.local/share/virtualenvs/test-bJfQ6Jzk/bin/pip", line 7, in <module>
from pip._internal import main
ModuleNotFoundError: No module named 'pip._internal'
This error occurs even after reinstalling pipenv, deleting all files and recreate the environment. It also had no impact if I ran pipenv install numpy
inside or outside the environment.
Python 3.6.3
Pipenv 11.10.1
Thank you in advance.
python python-3.x pipenv
Today, I installed Pipenv via
pip install pipenv
As mentioned in the documentation I went to a test directory and created a new virtual environment using
pipenv shell
and tried to install a package via
pipenv install numpy
I got the following error message:
Installing numpy…
⠧
Error: An error occurred while installing numpy!
Traceback (most recent call last):
File "/Users/florian/.local/share/virtualenvs/test-bJfQ6Jzk/bin/pip", line 7, in <module>
from pip._internal import main
ModuleNotFoundError: No module named 'pip._internal'
This error occurs even after reinstalling pipenv, deleting all files and recreate the environment. It also had no impact if I ran pipenv install numpy
inside or outside the environment.
Python 3.6.3
Pipenv 11.10.1
Thank you in advance.
python python-3.x pipenv
python python-3.x pipenv
edited May 4 '18 at 3:28
Train
asked May 2 '18 at 13:02
TrainTrain
95111
95111
Try force reinstallingpipenv
. This error is encountered while updatingpip
too.--force-reinstall
i.e.
– Ganesh K
May 2 '18 at 13:05
Actually my bad, such an option ain't there. Try an update on all your packages and then reinstall, in their main repo, they say the same
– Ganesh K
May 2 '18 at 13:07
I solved the problem by completely removing pip and reinstalling it. Thank you anyway for your fast responses!
– Train
May 2 '18 at 13:19
No problem. Edit your question to include the answer as others might benefit too.
– Ganesh K
May 2 '18 at 16:12
@Train Any chance you could add the solution as an answer, then accept it? That helps keep the site tidy and avoids an answered question looking like it still needs an answer.
– Josh
May 3 '18 at 22:42
|
show 2 more comments
Try force reinstallingpipenv
. This error is encountered while updatingpip
too.--force-reinstall
i.e.
– Ganesh K
May 2 '18 at 13:05
Actually my bad, such an option ain't there. Try an update on all your packages and then reinstall, in their main repo, they say the same
– Ganesh K
May 2 '18 at 13:07
I solved the problem by completely removing pip and reinstalling it. Thank you anyway for your fast responses!
– Train
May 2 '18 at 13:19
No problem. Edit your question to include the answer as others might benefit too.
– Ganesh K
May 2 '18 at 16:12
@Train Any chance you could add the solution as an answer, then accept it? That helps keep the site tidy and avoids an answered question looking like it still needs an answer.
– Josh
May 3 '18 at 22:42
Try force reinstalling
pipenv
. This error is encountered while updating pip
too. --force-reinstall
i.e.– Ganesh K
May 2 '18 at 13:05
Try force reinstalling
pipenv
. This error is encountered while updating pip
too. --force-reinstall
i.e.– Ganesh K
May 2 '18 at 13:05
Actually my bad, such an option ain't there. Try an update on all your packages and then reinstall, in their main repo, they say the same
– Ganesh K
May 2 '18 at 13:07
Actually my bad, such an option ain't there. Try an update on all your packages and then reinstall, in their main repo, they say the same
– Ganesh K
May 2 '18 at 13:07
I solved the problem by completely removing pip and reinstalling it. Thank you anyway for your fast responses!
– Train
May 2 '18 at 13:19
I solved the problem by completely removing pip and reinstalling it. Thank you anyway for your fast responses!
– Train
May 2 '18 at 13:19
No problem. Edit your question to include the answer as others might benefit too.
– Ganesh K
May 2 '18 at 16:12
No problem. Edit your question to include the answer as others might benefit too.
– Ganesh K
May 2 '18 at 16:12
@Train Any chance you could add the solution as an answer, then accept it? That helps keep the site tidy and avoids an answered question looking like it still needs an answer.
– Josh
May 3 '18 at 22:42
@Train Any chance you could add the solution as an answer, then accept it? That helps keep the site tidy and avoids an answered question looking like it still needs an answer.
– Josh
May 3 '18 at 22:42
|
show 2 more comments
3 Answers
3
active
oldest
votes
After trying around for a while, I fully reinstalled pip. This solved the problem and everything is working now as expected.
Before providing the two commands, which solved the problem, I want to specify some things:
- I'm on MacOS
- python stands for python3 (added an alias for that, because I only use python3)
- pip is on version 9 and NOT 10
Here are both commands:
sudo pip uninstall pip
sudo python get-pip.py
add a comment |
I have had the same issue (python 3.5/Ubuntu 16.04LTS). Reinstalling pip
with:
sudo apt install python-pip python-pip3 --reinstall
didn't solve the issue with me.
What worked in my case was reinstalling pipenv
itself, from pip
:
sudo pip3 install pipenv --force-reinstall
If you are running python 2.x or if your system is different than mine, you can try to replace pip3
with pip
in the command:
sudo pip install pipenv --force-reinstall
1
Dude, you're a boss. This worked faster.
– Kivo360
Oct 20 '18 at 22:33
add a comment |
Ubuntu 18.04, Python 3.6 :
Reinstalling pipenv did not work for me. Reinstall pip3 was the only issue, but
sudo apt install python3-pip
did not work too. Found a link to get pip3 in AskUbuntu.com which worked fine :
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3 get-pip.py --force-reinstall
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
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%2fstackoverflow.com%2fquestions%2f50135334%2fpipenv-error-modulenotfounderror-no-module-named-pip-internal%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 trying around for a while, I fully reinstalled pip. This solved the problem and everything is working now as expected.
Before providing the two commands, which solved the problem, I want to specify some things:
- I'm on MacOS
- python stands for python3 (added an alias for that, because I only use python3)
- pip is on version 9 and NOT 10
Here are both commands:
sudo pip uninstall pip
sudo python get-pip.py
add a comment |
After trying around for a while, I fully reinstalled pip. This solved the problem and everything is working now as expected.
Before providing the two commands, which solved the problem, I want to specify some things:
- I'm on MacOS
- python stands for python3 (added an alias for that, because I only use python3)
- pip is on version 9 and NOT 10
Here are both commands:
sudo pip uninstall pip
sudo python get-pip.py
add a comment |
After trying around for a while, I fully reinstalled pip. This solved the problem and everything is working now as expected.
Before providing the two commands, which solved the problem, I want to specify some things:
- I'm on MacOS
- python stands for python3 (added an alias for that, because I only use python3)
- pip is on version 9 and NOT 10
Here are both commands:
sudo pip uninstall pip
sudo python get-pip.py
After trying around for a while, I fully reinstalled pip. This solved the problem and everything is working now as expected.
Before providing the two commands, which solved the problem, I want to specify some things:
- I'm on MacOS
- python stands for python3 (added an alias for that, because I only use python3)
- pip is on version 9 and NOT 10
Here are both commands:
sudo pip uninstall pip
sudo python get-pip.py
answered May 4 '18 at 3:28
TrainTrain
95111
95111
add a comment |
add a comment |
I have had the same issue (python 3.5/Ubuntu 16.04LTS). Reinstalling pip
with:
sudo apt install python-pip python-pip3 --reinstall
didn't solve the issue with me.
What worked in my case was reinstalling pipenv
itself, from pip
:
sudo pip3 install pipenv --force-reinstall
If you are running python 2.x or if your system is different than mine, you can try to replace pip3
with pip
in the command:
sudo pip install pipenv --force-reinstall
1
Dude, you're a boss. This worked faster.
– Kivo360
Oct 20 '18 at 22:33
add a comment |
I have had the same issue (python 3.5/Ubuntu 16.04LTS). Reinstalling pip
with:
sudo apt install python-pip python-pip3 --reinstall
didn't solve the issue with me.
What worked in my case was reinstalling pipenv
itself, from pip
:
sudo pip3 install pipenv --force-reinstall
If you are running python 2.x or if your system is different than mine, you can try to replace pip3
with pip
in the command:
sudo pip install pipenv --force-reinstall
1
Dude, you're a boss. This worked faster.
– Kivo360
Oct 20 '18 at 22:33
add a comment |
I have had the same issue (python 3.5/Ubuntu 16.04LTS). Reinstalling pip
with:
sudo apt install python-pip python-pip3 --reinstall
didn't solve the issue with me.
What worked in my case was reinstalling pipenv
itself, from pip
:
sudo pip3 install pipenv --force-reinstall
If you are running python 2.x or if your system is different than mine, you can try to replace pip3
with pip
in the command:
sudo pip install pipenv --force-reinstall
I have had the same issue (python 3.5/Ubuntu 16.04LTS). Reinstalling pip
with:
sudo apt install python-pip python-pip3 --reinstall
didn't solve the issue with me.
What worked in my case was reinstalling pipenv
itself, from pip
:
sudo pip3 install pipenv --force-reinstall
If you are running python 2.x or if your system is different than mine, you can try to replace pip3
with pip
in the command:
sudo pip install pipenv --force-reinstall
edited Oct 21 '18 at 2:56
answered Oct 18 '18 at 10:12
cedbeucedbeu
1,357820
1,357820
1
Dude, you're a boss. This worked faster.
– Kivo360
Oct 20 '18 at 22:33
add a comment |
1
Dude, you're a boss. This worked faster.
– Kivo360
Oct 20 '18 at 22:33
1
1
Dude, you're a boss. This worked faster.
– Kivo360
Oct 20 '18 at 22:33
Dude, you're a boss. This worked faster.
– Kivo360
Oct 20 '18 at 22:33
add a comment |
Ubuntu 18.04, Python 3.6 :
Reinstalling pipenv did not work for me. Reinstall pip3 was the only issue, but
sudo apt install python3-pip
did not work too. Found a link to get pip3 in AskUbuntu.com which worked fine :
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3 get-pip.py --force-reinstall
add a comment |
Ubuntu 18.04, Python 3.6 :
Reinstalling pipenv did not work for me. Reinstall pip3 was the only issue, but
sudo apt install python3-pip
did not work too. Found a link to get pip3 in AskUbuntu.com which worked fine :
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3 get-pip.py --force-reinstall
add a comment |
Ubuntu 18.04, Python 3.6 :
Reinstalling pipenv did not work for me. Reinstall pip3 was the only issue, but
sudo apt install python3-pip
did not work too. Found a link to get pip3 in AskUbuntu.com which worked fine :
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3 get-pip.py --force-reinstall
Ubuntu 18.04, Python 3.6 :
Reinstalling pipenv did not work for me. Reinstall pip3 was the only issue, but
sudo apt install python3-pip
did not work too. Found a link to get pip3 in AskUbuntu.com which worked fine :
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3 get-pip.py --force-reinstall
answered Nov 13 '18 at 8:39
Romain FerryRomain Ferry
91
91
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- 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%2fstackoverflow.com%2fquestions%2f50135334%2fpipenv-error-modulenotfounderror-no-module-named-pip-internal%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
Try force reinstalling
pipenv
. This error is encountered while updatingpip
too.--force-reinstall
i.e.– Ganesh K
May 2 '18 at 13:05
Actually my bad, such an option ain't there. Try an update on all your packages and then reinstall, in their main repo, they say the same
– Ganesh K
May 2 '18 at 13:07
I solved the problem by completely removing pip and reinstalling it. Thank you anyway for your fast responses!
– Train
May 2 '18 at 13:19
No problem. Edit your question to include the answer as others might benefit too.
– Ganesh K
May 2 '18 at 16:12
@Train Any chance you could add the solution as an answer, then accept it? That helps keep the site tidy and avoids an answered question looking like it still needs an answer.
– Josh
May 3 '18 at 22:42