q&a

Q&A

/usr/bin/python3.12: No module named ensurepip

  • issue

    $ pipx install ansible --include-deps
    Error: Command '['/home/marslo/.local/share/pipx/shared/bin/python3.12', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
    '/usr/bin/python3.12 -m venv --clear /home/marslo/.local/share/pipx/shared' failed
    
    $ /usr/bin/python3.12 -m ensurepip --upgrade --default-pip
    /usr/bin/python3.12: No module named ensurepip
  • solution

    $ sudo apt install python3.12-venv
  • result

    $ pipx install ansible --include-deps
      installed package ansible 9.1.0, installed using Python 3.12.1
      These apps are now globally available
        - ansible
        - ansible-community
        - ansible-config
        - ansible-connection
        - ansible-console
        - ansible-doc
        - ansible-galaxy
        - ansible-inventory
        - ansible-playbook
        - ansible-pull
        - ansible-test
        - ansible-vault
    done! ✨ 🌟 ✨

pkg_resources.VersionConflict

  • issue

  • solution

  • ln -sf

ImportError: No module named pkg_resources

  • precondition:

  • issue

  • solution

    • restore ~/Library/Python/2.7

      result:

    • install setuptools==39.1.0 and xattr==0.6.4

    result:

    • reinstall xattr==0.6.4 for global [if necessary]

No module named pip

libpython3.12 : Depends: libpython3.12-stdlib (= 3.12.8-1+jammy1) but 3.12.7-1+jammy1 is installed

[!TIP|label:references:]

  • error message

  • solution 1 : dpkg --force-depends

  • solution 2 : dpkg --force-overwrite

  • solution 3 : aptitude install

Last updated

Was this helpful?