Siduction Forum
Siduction Forum => Software - Support => Topic started by: ForeverNoob on 2023/04/07, 08:31:20
-
Hello,
How can I install pyside6 system-wide?
TIA
-
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.
-
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
-
It may just come down to syntax.
https://pypi.org/project/PySide6/
-
Did I say
apt install python3-pyside6
I don't think so.
-
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
-
You need pip3 first, because pyside6 is not in Debian. If
sudo apt install python3-pip
does not work, your sources.list is wrong.
-
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.
-
Sorry man, I'm out. You have to learn how to read. Look at my initial instructions.
-
The pip3 install command is correct (https://pypi.org/project/PySide6/). There's a file on your system marking it as 'externally managed (https://stackoverflow.com/questions/75608323/how-do-i-solve-error-externally-managed-environment-everytime-i-use-pip3)', 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.