tiny_computer icon indicating copy to clipboard operation
tiny_computer copied to clipboard

Help me to install bauh store

Open Hubvinod opened this issue 11 months ago • 1 comments

I tried tmoe to install bauh store , i got error , Can u give direct solution to fix it .

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. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification.�

Hubvinod avatar Jan 19 '25 14:01 Hubvinod

(I used AI translation.)

Due to many restrictions, I had to use multiple steps to proceed. Here, I will only describe the method that allowed me to install successfully.

  1. Use apt to install PyQt5, which is a dependency for bauh (because it cannot be installed using pip here).

sudo apt install python3-pyqt5

2.Copy all contents under /usr/lib/python3/dist-packages/ to another location (such as the desktop).

3.Install venv and create an environment.

sudo pip3 install bauh python3 -m venv bauh_env

4.Delete all contents under /home/tiny/bauh_env/lib/python3.11/site-packages/ , and then paste the previously copied contents into it.

5.Use pip install bauh

bauh_env/bin/pip install bauh

6.And then follow the official documentation to use.

Note: Prefix all commands with "bauh_env/bin/", such as when starting bauh. bauh_env/bin/bauh

I referred to these:github #266

shadow01a avatar Jan 30 '25 16:01 shadow01a