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

前端 未结 3 1507
[愿得一人]
[愿得一人] 2021-02-14 17:00

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

3条回答
  •  眼角桃花
    2021-02-14 17:29

    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
    

提交回复
热议问题