I got it working by doing: python3 -m venv .local/pipx/venvs/musicpy/ .local/pipx/venvs/musicpy/bin/python3.11 Then I was able to import musicpy from the python shell. How bewildering! Thanks.