[Python] pip of python installed via deadsnakes, shows "no module named distutils" error

Discussão em 'Python' iniciado por Stack, Fevereiro 28, 2025.

  1. Stack

    Stack Membro Participativo

    When installing python using deadsnakes ppa, and using pip on it like in the following example

    python3.12 -m pip install django


    will result in the following error

    File "/usr/lib/python3/dist-packages/pip/_internal/locations/_distutils.py", line 9, in <module>
    from distutils.cmd import Command as DistutilsCommand
    ModuleNotFoundError: No module named 'distutils'

    Continue reading...

Compartilhe esta Página