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

后端 未结 4 488
情话喂你
情话喂你 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:42

    Try uninstalling pip and installing get-pip.py. It appears to be a bug in the 3.6 version for Windows. https://github.com/pypa/pip/issues/3964

    It's also reported here. pip install jupyter: "Unable to locate finder for 'pip._vendor.distlib'"

    0 讨论(0)
  • 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 :)

    0 讨论(0)
  • 2020-12-05 10:50

    This worked for me:

    easy_install --upgrade pip

    Windows 10, Python 3.6

    0 讨论(0)
  • 2020-12-05 11:05
    1. uninstall current pip:

      python -m pip uninstall pip setuptools
      
    2. download get-pip.py from https://bootstrap.pypa.io/get-pip.py

    3. execute get-pip script:

      python get-pip.py
      
    0 讨论(0)
提交回复
热议问题