“Unable to locate finder for 'pip._vendor.distlib'” error when using “pip install virtualenv”

后端 未结 4 497
情话喂你
情话喂你 2020-12-05 10:30

I am trying to install virtualenv with Python 3.6 version under Windows 10.When I run \"pip install virtualenv\" I\'m getting this error. I am a newbie to Python.

         


        
4条回答
  •  一生所求
    2020-12-05 10:48

    I will add the solution which worked for me here, in case someone is not able to solve their issue using the above approaches. Open Terminal or Command prompt or Anaconda prompt and follow the 3 steps :

    Step 1
    Enter python -m pip uninstall pip

    Step 2
    python -m ensurepip

    Step 3
    python -m pip install -U pip

    The pip version can easily be checked using pip --version. Hope this works for you :)

提交回复
热议问题