Re: Installing a python package with pipx

2024-06-02 Thread Richard
If it where an issue with pip or pipx, yes. But as you pointed out yourself, it's also happening on OpenSuse, so the issue can't be pip or pipx, but rather either what you are trying to install or your understanding of it. Am So., 2. Juni 2024 um 14:20 Uhr schrieb Richmond : > I am not

Re: Installing a python package with pipx

2024-06-02 Thread Richmond
Richard writes: > python3 -m venv venv > source venv/bin/activate > pip install musicpy OK thanks. And apparently to get idle working I do: python -m idlelib.idle

Re: Installing a python package with pipx

2024-06-02 Thread Richmond
Richard writes: > That's how its done. Also, complaining here about something that > doesn't even work on other distros and thus can't be a Debian > problem doesn't make that much sense. I am not complaining, I am trying to find out how to get it working. And as pip (and pipx) are debian

Re: Installing a python package with pipx

2024-06-02 Thread Richard
python3 -m venv venv source venv/bin/activate pip install musicpy That's how its done. Also, complaining here about something that doesn't even work on other distros and thus can't be a Debian problem doesn't make that much sense. Am So., 2. Juni 2024 um 13:50 Uhr schrieb Richmond : > OK Back

Re: Installing a python package with pipx

2024-06-02 Thread Richmond
OK Back on Debian, I removed the one package installed with pipx, which was musicpy, then tried to install it with pip, but got this message which actually tells me to use pipx. (There is no package python-musicpy). pip install musicpy error: externally-managed-environment × This environment is

Re: Installing a python package with pipx

2024-06-02 Thread Richmond
Richard wrote: > > > On Sat, Jun 1, 2024, 23:50 Richmond > wrote: > > Richard mailto:rrosn...@gmail.com>> writes: > > > A packages documentation is always your best > friend: https://pypi.org > > /project/idle/ > > > > Yes it makes it look easy

Re: Installing a python package with pipx

2024-06-01 Thread Richard
On Sat, Jun 1, 2024, 23:50 Richmond wrote: > Richard writes: > > > A packages documentation is always your best friend: https://pypi.org > > /project/idle/ > > > > Yes it makes it look easy there, but: > > import idle > Traceback (most recent call last): > File "", line 1, in > File

Re: Installing a python package with pipx

2024-06-01 Thread Richmond
Richard writes: > A packages documentation is always your best friend: https://pypi.org > /project/idle/ > Yes it makes it look easy there, but: import idle Traceback (most recent call last): File "", line 1, in File ".local/pipx/shared/lib/python3.11/site-packages/idle.py", line 4, in

Re: Installing a python package with pipx

2024-06-01 Thread Richard
A packages documentation is always your best friend: https://pypi.org/project/idle/ Also, python script isn't a necessarily a standalone executable. And also, you shouldn't just wildly mix pipx commands with pip commands if you don't know what you are doing. Either create a venv with python3 -m

Re: Installing a python package with pipx

2024-06-01 Thread Richmond
Richard writes: > Pretty much just what pipx does. > Well I don't know how. Now I need to run idle in my new environment. I have installed it .local/pipx/shared/bin/pip install idle and it is here: .local/pipx/shared/lib/python3.11/site-packages/idle.py but I don't know how to run it. I

Re: Installing a python package with pipx

2024-06-01 Thread Richard
Pretty much just what pipx does. On Sat, Jun 1, 2024, 22:00 Richmond wrote: > > 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. >

Re: Installing a python package with pipx

2024-06-01 Thread Richmond
Richard writes: > That's the point of venv's. pipx runpip should do the trick. Or the > classic way: source path/to/venv/bin/activate. That way you activate > the position virtual environment (venv) created in that directory > with all packages installed in that venv. > I got it working by

Re: Installing a python package with pipx

2024-06-01 Thread Richard
That's the point of venv's. pipx runpip should do the trick. Or the classic way: source path/to/venv/bin/activate. That way you activate the position virtual environment (venv) created in that directory with all packages installed in that venv. Richard On Sat, Jun 1, 2024, 19:10 Richmond wrote:

Re: Installing a python package with pipx

2024-06-01 Thread Richmond
Richard writes: > Looking at the package, no wonder it fails. musicpy doesn't contain > anything that can be executed. So pipx run can't work for obvious > reasons. You'll have to install it with pipx install and use it in a > python script. > > https://pypi.org/project/musicpy/ > OK so I have

Re: Installing a python package with pipx

2024-06-01 Thread Richard
Looking at the package, no wonder it fails. musicpy doesn't contain anything that can be executed. So pipx run can't work for obvious reasons. You'll have to install it with pipx install and use it in a python script. https://pypi.org/project/musicpy/ Richard On Sat, Jun 1, 2024, 18:40 Richmond

Re: Installing a python package with pipx

2024-06-01 Thread Richmond
Richard writes: > If you haven't closed the terminal window/logged out, you need to run > source .bashrc. Running pipx ensurepath should have said something > like that. Yes, I did this: > > (logged out and in to get updated PATH)

Re: Installing a python package with pipx

2024-06-01 Thread Richard
If you haven't closed the terminal window/logged out, you need to run source .bashrc. Running pipx ensurepath should have said something like that. Richard On Sat, Jun 1, 2024, 18:10 Richmond wrote: > I have been trying to install this: > > https://pypi.org/project/musicpy/#description > >

Installing a python package with pipx

2024-06-01 Thread Richmond
I have been trying to install this: https://pypi.org/project/musicpy/#description with not much success. I have done these: sudo aptitude install pip sudo aptitude install pipx pipx ensurepath pipx install --include-deps musicpy (logged out and in to get updated PATH) pipx run musicpy