Tag Archives: python-pip

[Solved] Python-pip Upgrade ERROR: AttributeError: ‘NoneType’ object has no attribute ‘bytes’

Normal PIP upgrade command:

python -m pip install --upgrade pip

Create a python project in pytharm, and pytharm will automatically build a new Python environment to use in the current directory

python -m pip install --upgrade pip

I’ll report an error

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

You can use the following methods

easy_install -U pip