using pip3: module “importlib._bootstrap” has no attribute “SourceFileLoader”

Faced the same problem. I think this is because python3.6 and pip3 were installed from different sources. I suggest using python’s inbuilt facility to install pip i.e

python3 -m ensurepip --upgrade

This should install pip3 and pip3.x where x in python3.x. Same works for python2 also.

Leave a Comment