Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [EN] Can't install pyside6  (Read 4996 times)

Offline ForeverNoob

  • Newbie
  • Posts: 4
[EN] Can't install pyside6
« on: 2023/04/07, 08:31:20 »
Hello,

How can I install pyside6 system-wide?

TIA

Offline devil

  • Administrator
  • User
  • *****
  • Posts: 4.877
Re: Can't install pyside6
« Reply #1 on: 2023/04/07, 09:04:11 »
Hi and welcome to siduction.

Pyside6 is not available in Debian Unstable or siduction from the archives. To install it, you need the python-installer pip. First install pip itself with
Code: [Select]
apt update && apt install python3-pip
In the next step, you install pyside6 with:
Code: [Select]
pip3 install pyside6
After that, you can start creating Python GUI applications with PySide6 in siduction. Have fun.

Offline ForeverNoob

  • Newbie
  • Posts: 4
Re: Can't install pyside6
« Reply #2 on: 2023/04/07, 09:18:24 »
Hi and welcome to siduction.

Pyside6 is not available in Debian Unstable or siduction from the archives. To install it, you need the python-installer pip. First install pip itself with
Code: [Select]
apt update && apt install python3-pip
In the next step, you install pyside6 with:
Code: [Select]
pip3 install pyside6
After that, you can start creating Python GUI applications with PySide6 in siduction. Have fun.
Thanks for answering.

This the response of the pip3 install:

Code: [Select]
error: externally-managed-environment



× This environment is externally managed

╰─> To install Python packages system-wide, try apt install

    python3-xyz, where xyz is the package you are trying to

    install.

     
    If you wish to install a non-Debian-packaged Python package,

    create a virtual environment using python3 -m venv path/to/venv.

    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make

    sure you have python3-full installed.

     
    If you wish to install a non-Debian packaged Python application,

    it may be easiest to use pipx install xyz, which will manage a

    virtual environment for you. Make sure you have pipx installed.

     
    See /usr/share/doc/python3.11/README.venv for more information.



note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. Y
ou can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packag
es.

hint: See PEP 668 for the detailed specification.


As suggested I tried this:


Code: [Select]
apt install python3-pyside6
The response was:

Code: [Select]
Unable to locate package python3-pyside6

Offline eriefisher

  • User
  • Posts: 300
Re: Can't install pyside6
« Reply #3 on: 2023/04/07, 13:01:41 »
It may just come down to syntax.

https://pypi.org/project/PySide6/

Offline devil

  • Administrator
  • User
  • *****
  • Posts: 4.877
Re: Can't install pyside6
« Reply #4 on: 2023/04/08, 19:41:38 »
Did I say 
Code: [Select]
apt install python3-pyside6
I don't think so.

Offline ForeverNoob

  • Newbie
  • Posts: 4
Re: Can't install pyside6
« Reply #5 on: 2023/04/08, 20:00:59 »
Did I say
Code: [Select]
apt install python3-pyside6
I don't think so.
That doesn't work too. apt response:

Code: [Select]
Unable to locate package python3-pyside6

Offline devil

  • Administrator
  • User
  • *****
  • Posts: 4.877
Re: Can't install pyside6
« Reply #6 on: 2023/04/08, 20:25:07 »
You need pip3 first, because pyside6 is not in Debian. If
Code: [Select]
sudo apt install python3-pip
does not work, your sources.list is wrong.

Offline ForeverNoob

  • Newbie
  • Posts: 4
Re: Can't install pyside6
« Reply #7 on: 2023/04/08, 20:35:37 »
You need pip3 first, because pyside6 is not in Debian. If
Code: [Select]
sudo apt install python3-pip
does not work, your sources.list is wrong.
Already had that installed. Running
Code: [Select]
pip3 install pyside6
gives the following response:
Code: [Select]
error: externally-managed-environment



× This environment is externally managed

╰─> To install Python packages system-wide, try apt install

    python3-xyz, where xyz is the package you are trying to

    install.

     
    If you wish to install a non-Debian-packaged Python package,

    create a virtual environment using python3 -m venv path/to/venv.

    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make

    sure you have python3-full installed.

     
    If you wish to install a non-Debian packaged Python application,

    it may be easiest to use pipx install xyz, which will manage a

    virtual environment for you. Make sure you have pipx installed.

     
    See /usr/share/doc/python3.11/README.venv for more information.



note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. Y
ou can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packag
es.

hint: See PEP 668 for the detailed specification.

Offline devil

  • Administrator
  • User
  • *****
  • Posts: 4.877
Re: Can't install pyside6
« Reply #8 on: 2023/04/08, 20:38:37 »
Sorry man, I'm out. You have to learn how to read. Look at my initial instructions.

Offline dpanter

  • User
  • Posts: 62
Re: Can't install pyside6
« Reply #9 on: 2023/04/08, 21:08:10 »
The pip3 install command is correct. There's a file on your system marking it as 'externally managed', just like the message says.
Included in the message is a suggestion to use a venv (virtual environment) or use pipx, alternatively it notes a way to override the restriction, at the risk of breaking your Python installation or OS. Your choice how to proceed.
<< insert signature here >>