python3.6 error on pip

python3.6 error on pip

$ sudo pip3 install --upgrade pip
Traceback (most recent call last):
  File "/usr/bin/pip3", line 5, in 
    from pkg_resources import load_entry_point
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 1479, in 
    register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
                    

Fix:

curl https://bootstrap.pypa.io/ez_setup.py -o - | python3.6 && python3.6 -m easy_install pip

Modification Date: 2018-11-26 21:18:56