Skip to content Skip to sidebar Skip to footer

Python 3.5 Pip 9 Attributeerror: 'nonetype' Object Has No Attribute 'bytes'

What is the problem? I tried 'python -m pip install -U pip' and 'python -m pip install --upgrade pip' both with the same error (and 'pip install -U --force-reinstall pip'). what s

Solution 1:

Try using easy_install -U pip, according to this bug report.

Edit: Okay, go to "https://pypi.org/simple/pip/", and download the latest .whl file (scroll to the bottom). When you have it, open cmd in the same folder (by clicking File -> open powershell/cmd in the file explorer), and type

pip install filename, with filename being the name of the file you downloaded (Should be pip-18.0-py2.py3-none-any.whl).

Try that and tell me if it works.

Solution 2:

Solution 3:

My answer is a variation of assmmahmud's but for me I had to use the option --user. I'm on windows so from CMD.exe;

py -m pip install --user--force-reinstall -U

If I don't use the --user option then the error occurs.

Post a Comment for "Python 3.5 Pip 9 Attributeerror: 'nonetype' Object Has No Attribute 'bytes'"