-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python3.9 get-pip.py results in "AttributeError: 'HTMLParser' object has no attribute 'unescape'" #9130
Comments
Do you have a file named |
Ah, I think I know what’s going on. PR soon. |
And in case it helps, here's exactly what I'm doing:
|
BTW why do you need |
I'm just following the instructions to install pip for Python 3.9 as described here: |
Turns out this has been fixed for at long time: pypa/setuptools@53b8db3 But your setuptools package is ancient and does not contain it. Judging from your paths, you seem to be on a Debian-derived system. How did you install Python 3.9? You should use |
So to install Python 3.9 on Ubuntu 16 I use the following commands: sudo apt install software-properties-common Is this not the correct way to install python3.9? Is there a better way to do it? I used to use apt to install pip, but it was always installing an older version - I haven't tried it recently. |
It is a correct way to install Python 3.9, and should already contain pip. Does It seems like someone reported a similar issue to deadsnakes recently: deadsnakes/issues#117. You probably want to join the discussion there since it would be much easier to reach deadsnakes maintainers. |
Hmm... doesn't seem so: $ python3.9 -m pip --version |
Then that's a bug in how Ubuntu package Python. I have a feeling it's a known problem - I vaguely recall that Ubuntu split pip out from the "main" Python package - but if so, you need to do whatever's required in Ubuntu to get a complete Python installation (which means it includes pip). |
So, the recommendation posted to the ticket I created in deadsnakes (referenced in this ticket) was to use One side-effect of this is that it seems like I don't get a pip3.9 executable - which I guess really isn't the end of the world as it seems like the general recommendation is to use Also, performing python3.9's pip update overwrites pip and pip3 to point to python3.9, which doesn't seem like a good idea for system-level scripts that use those with the assumption that pip -> python2 and pip3 -> system-level python version (i.e. 3.6 for Ubuntu 16). I'm not sure if that's a problem, but it does seem weird that pip/pip3 are changed. |
|
So after installing pip this way:
Then I get the following:
So Anthony is pointing to pip saying there's a bug here, and you're saying it's an issue there... ahhh.. I don't know what to do :) |
pip version:
version 20.2.4
Python version:
Python 3.9
Operating system:
Ubuntu 18.04.5 LTS
When I try an install pip I get the following error:
The text was updated successfully, but these errors were encountered: