pip install --upgrade setuptools #this may work, results will vary based on the nature of the error.
$ pip3 install --upgrade setuptools $ pip3 install --upgrade pip