pypa / get-pip

Helper scripts to install pip, in a Python installation that doesn't have it.
https://bootstrap.pypa.io/pip/
MIT License
740 stars 293 forks source link

Issue #127

Closed omsenjalia closed 2 years ago

omsenjalia commented 2 years ago

om@localhost:~$ curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py om@localhost:~$ python3 get-pip.py Traceback (most recent call last): File "get-pip.py", line 24556, in main() File "get-pip.py", line 139, in main bootstrap(tmpdir=tmpdir) File "get-pip.py", line 115, in bootstrap monkeypatch_for_cert(tmpdir) File "get-pip.py", line 96, in monkeypatch_for_cert from pip._internal.commands.install import InstallCommand File "/tmp/tmp78eno5x9/pip.zip/pip/_internal/commands/init.py", line 9, in File "/tmp/tmp78eno5x9/pip.zip/pip/_internal/cli/base_command.py", line 12, in File "/tmp/tmp78eno5x9/pip.zip/pip/_internal/cli/cmdoptions.py", line 23, in File "/tmp/tmp78eno5x9/pip.zip/pip/_internal/cli/parser.py", line 12, in File "/tmp/tmp78eno5x9/pip.zip/pip/_internal/configuration.py", line 27, in File "/tmp/tmp78eno5x9/pip.zip/pip/_internal/utils/misc.py", line 42, in File "/tmp/tmp78eno5x9/pip.zip/pip/_internal/locations/init.py", line 14, in File "/tmp/tmp78eno5x9/pip.zip/pip/_internal/locations/_distutils.py", line 9, in ModuleNotFoundError: No module named 'distutils.cmd' om@localhost:~$

pradyunsg commented 2 years ago

Are you on Ubuntu or a Debian-derived distribution?

pradyunsg commented 2 years ago

If yes, this issue looks like it is caused by changes that Debian made to Python. Please file a bug with Debian, with reportbug python3 (their reporting documentation). You can link to this issue in your bug report.

I believe you can probably solve this by running apt install python3-venv.

omsenjalia commented 2 years ago

fixed ty