如果系统是 ubuntu,试试

sudo pip install --no-use-wheel --upgrade distribute

参考:

python - pip install broken (pkg_resources.find_distribution returns empty list in req.py-prepare_files)