Can't install pyside6

Started by ForeverNoob, 2023/04/07, 08:31:20

Previous topic - Next topic

ForeverNoob

Hello,

How can I install pyside6 system-wide?

TIA

devil

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
apt update && apt install python3-pip

In the next step, you install pyside6 with:
pip3 install pyside6

After that, you can start creating Python GUI applications with PySide6 in siduction. Have fun.

ForeverNoob

Quote from: devil 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
apt update && apt install python3-pip

In the next step, you install pyside6 with:
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:

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:


apt install python3-pyside6

The response was:

Unable to locate package python3-pyside6

eriefisher

I AM CANADIAN!

devil

Did I say 
apt install python3-pyside6

I don't think so.

ForeverNoob

Quote from: devil on 2023/04/08, 19:41:38
Did I say
apt install python3-pyside6

I don't think so.
That doesn't work too. apt response:

Unable to locate package python3-pyside6

devil

You need pip3 first, because pyside6 is not in Debian. If
sudo apt install python3-pip

does not work, your sources.list is wrong.

ForeverNoob

Quote from: devil on 2023/04/08, 20:25:07
You need pip3 first, because pyside6 is not in Debian. If
sudo apt install python3-pip

does not work, your sources.list is wrong.
Already had that installed. Running
pip3 install pyside6

gives the following response:
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.


devil

Sorry man, I'm out. You have to learn how to read. Look at my initial instructions.

dpanter

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 >>