對於我們Python用戶來講,pip安裝各種軟件,真的是太平常可見了,大家一定碰到各種升級報錯,在此做一些記錄,方便以后進行參考查閱。
AttributeError: 'NoneType' object has no attribute 'bytes'
正常的pip升級命令:
python -m pip install --upgrade pip
之前沒有問題,今天竟然報錯
AttributeError: 'NoneType' object has no attribute 'bytes'
有效的解決方法是:
easy_install -U pip

AttributeError: 'NoneType' object has no attribute 'bytes'