Forums

Running pip -U updated pip and now my environment is broken

Is there any way I can reset my all environment? I can't even run pip now, it has been updated to pip10 and it seems many people are affected https://github.com/pypa/pip/issues/5240

09:29 ~/tot (master)$ python3.6 -m pip                                                                                                                                                           
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 183, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/usr/lib/python3.6/runpy.py", line 142, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "/usr/lib/python3.6/runpy.py", line 109, in _get_module_details
    __import__(pkg_name)
  File "/local/lib/python3.6/site-packages/pip/download.py", line 46, in <module>
    from pip._vendor import urllib3
ImportError: cannot import name 'urllib3'

Ok I reseted /local/lib/python3.6/site-packages and I'm good