Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named pip._vendor #6898

Closed
policetonyR opened this issue Aug 19, 2019 · 8 comments
Closed

No module named pip._vendor #6898

policetonyR opened this issue Aug 19, 2019 · 8 comments
Labels
auto-locked Outdated issues that have been locked by automation type: support User Support

Comments

@policetonyR
Copy link

Environment

  • pip version: 19.0.3?
  • Python version: 3.7.4
  • OS: Windows 10

Description
Pip is erroring out anytime it's ran

Expected behavior
To run pip

How to Reproduce
Run pip and have my pc (honestly no clue)

Output

C:\Users\Owner>pip
Traceback (most recent call last):
  File "c:\users\owner\appdata\local\programs\python\python37-32\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\owner\appdata\local\programs\python\python37-32\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\Scripts\pip.exe\__main__.py", line 5, in <module>
  File "C:\Users\Owner\AppData\Roaming\Python\Python37\site-packages\pip\_internal\__init__.py", line 19, in <module>
    from pip._vendor.urllib3.exceptions import DependencyWarning
ModuleNotFoundError: No module named 'pip._vendor'
@triage-new-issues triage-new-issues bot added the S: needs triage Issues/PRs that need to be triaged label Aug 19, 2019
@policetonyR
Copy link
Author

i've realized my version is 19.2.2

@venthur
Copy link
Contributor

venthur commented Aug 20, 2019

Cannot reproduce this on Linux:

(venv) venthur@fiona:/tmp$ pip install pip==19.2.2
Collecting pip==19.2.2
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/8d/07/f7d7ced2f97ca3098c16565efbe6b15fafcba53e8d9bdb431e09140514b0/pip-19.2.2-py2.py3-none-any.whl (1.4MB)
    100% |████████████████████████████████| 1.4MB 554kB/s 
Installing collected packages: pip
  Found existing installation: pip 18.1
    Uninstalling pip-18.1:
      Successfully uninstalled pip-18.1
Successfully installed pip-19.2.2

(venv) venthur@fiona:/tmp$ pip

Usage:   
  pip <command> [options]
  ...

(venv) venthur@fiona:/tmp$ pip --version
pip 19.2.2 from /tmp/venv/lib/python3.7/site-packages/pip (python 3.7)

@pradyunsg
Copy link
Member

Hi @policetonyR! Since you've not provided any hint as to why the issue is occurring, could you download https://bootstrap.pypa.io/get-pip.py and run it with the python.exe file in C:\Users\Owner\AppData\Local\Programs\Python\Python37-32?

# download get-pip.py
C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\python.exe get-pip.py

@policetonyR
Copy link
Author

already tried that and just tried it. the python prompt closed after it said it found installation and reinstalled.

@chrahunt chrahunt added S: awaiting response Waiting for a response/more information type: support User Support labels Aug 26, 2019
@triage-new-issues triage-new-issues bot removed S: needs triage Issues/PRs that need to be triaged labels Aug 26, 2019
@chrahunt
Copy link
Member

Are you still getting the same exact error? Can you check if there are files in C:\Users\Owner\AppData\Roaming\Python\Python37\site-packages\pip\_vendor\?

@policetonyR
Copy link
Author

image

@no-response no-response bot removed the S: awaiting response Waiting for a response/more information label Aug 26, 2019
@chrahunt
Copy link
Member

Somehow your installation has been corrupted - maybe overzealous anti-virus or some command was stopped partway through. In any case that pip is missing files.

You may try to remove C:\Users\Owner\AppData\Roaming\Python\Python37\site-packages\pip\ and C:\Users\Owner\AppData\Roaming\Python\Python37\site-packages\pip-*.dist-info\ (with the pip version instead of *) then install it again with the instructions given above.

@chrahunt chrahunt added the S: awaiting response Waiting for a response/more information label Aug 28, 2019
@policetonyR
Copy link
Author

that worked thanks

@no-response no-response bot removed the S: awaiting response Waiting for a response/more information label Aug 28, 2019
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Sep 27, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Sep 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation type: support User Support
Projects
None yet
Development

No branches or pull requests

4 participants