Pipenv-Error: ModuleNotFoundError: No module named 'pip._internal'












6














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.










share|improve this question
























  • 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










  • 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
















6














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.










share|improve this question
























  • 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










  • 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














6












6








6


2





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.










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 4 '18 at 3:28







Train

















asked May 2 '18 at 13:02









TrainTrain

95111




95111












  • 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










  • 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












  • 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












3 Answers
3






active

oldest

votes


















1














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





share|improve this answer





























    0














    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





    share|improve this answer



















    • 1




      Dude, you're a boss. This worked faster.
      – Kivo360
      Oct 20 '18 at 22:33



















    0














    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





    share|improve this answer





















      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
      });


      }
      });














      draft saved

      draft discarded


















      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









      1














      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





      share|improve this answer


























        1














        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





        share|improve this answer
























          1












          1








          1






          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





          share|improve this answer












          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






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 4 '18 at 3:28









          TrainTrain

          95111




          95111

























              0














              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





              share|improve this answer



















              • 1




                Dude, you're a boss. This worked faster.
                – Kivo360
                Oct 20 '18 at 22:33
















              0














              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





              share|improve this answer



















              • 1




                Dude, you're a boss. This worked faster.
                – Kivo360
                Oct 20 '18 at 22:33














              0












              0








              0






              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





              share|improve this answer














              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






              share|improve this answer














              share|improve this answer



              share|improve this answer








              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














              • 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











              0














              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





              share|improve this answer


























                0














                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





                share|improve this answer
























                  0












                  0








                  0






                  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





                  share|improve this answer












                  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






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 13 '18 at 8:39









                  Romain FerryRomain Ferry

                  91




                  91






























                      draft saved

                      draft discarded




















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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







                      Popular posts from this blog

                      Bressuire

                      Vorschmack

                      Quarantine