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

前端 未结 3 1559
[愿得一人]
[愿得一人] 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:20

    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
    

提交回复
热议问题