for Windows :
python -m pip install -U pip
for Linux :
pip install -U pip
解决 pip attributeerror 'nonetype' object has no attribute 'bytes'
原文:https://www.cnblogs.com/alfredsun/p/9447259.html