[Pythonmac-SIG] Failure on pip upgrade attempt

Gerrie Shults gshults at icloud.com
Sun Feb 11 16:32:20 EST 2018


I’m trying to get the latest version of pip to use to install Flask.

I have a fresh install of Python 3.6.4, and I executed "pip3 install -U pip”, per the instructions from "https://pip.pypa.io/en/stable/installing/“, and got the result below.

Why isn’t html.parser available as part of the standard install? What do I need to do to make this work?

Thanks for any help.

Gerrie Shults




$ pip3 install -U pip
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/bin/pip3", line 7, in <module>
    from pip import main
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/__init__.py", line 28, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/vcs/subversion.py", line 9, in <module>
    from pip.index import Link
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/index.py", line 31, in <module>
    from pip.wheel import Wheel, wheel_ext
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/wheel.py", line 39, in <module>
    from pip._vendor.distlib.scripts import ScriptMaker
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/distlib/scripts.py", line 14, in <module>
    from .compat import sysconfig, detect_encoding, ZipFile
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/distlib/compat.py", line 85, in <module>
    from html.parser import HTMLParser
ModuleNotFoundError: No module named 'html.parser'
$ 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20180211/8f03a417/attachment.html>


More information about the Pythonmac-SIG mailing list