pip升级报错- AttributeError: 'NoneType' object has no attribute 'bytes'

作者:じ☆ve不哭

发布时间:2020-09-01T17:03:28

最近在pycharm里面创建了一个Python项目,pycharm会自动搭建一个新的Python环境,在当前的目录下 使用正常的pip升级命令:python -m pip install --upgrade pip 出现下面错误 AttributeError: 'NoneType' object has no attribute 'bytes' AttributeError: 'NoneType' object has no attribute 'bytes'

解决方案:

easy_install -U pip
# 推荐指定国内源
easy_install -U pip -i https://pypi.tuna.tsinghua.edu.cn/simple

1598951048(1).png