There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

Overdraft ,

I’m not familiar with Nobara, but I can at least show how I would install pyUSB for use in Debian:

If you follow the instructions exactly as in the readme, it will error:


<span style="color:#323232;">$ pip install pyusb
</span><span style="color:#323232;">error: externally-managed-environment
</span><span style="color:#323232;">
</span><span style="color:#323232;">× This environment is externally managed
</span><span style="color:#323232;">╰─</span><span style="font-weight:bold;color:#a71d5d;">></span><span style="color:#323232;"> To install Python packages system-wide, try apt install
</span><span style="color:#323232;">    python3-xyz, where xyz is the package you are trying to
</span><span style="color:#323232;">    install.
</span><span style="color:#323232;">    
</span><span style="color:#323232;">    If you wish to install a non-Debian-packaged Python package,
</span><span style="color:#323232;">    create a virtual environment using python3 -m venv path/to/venv.
</span><span style="color:#323232;">    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
</span><span style="color:#323232;">    sure you have python3-full installed.
</span><span style="color:#323232;">    
</span><span style="color:#323232;">    If you wish to install a non-Debian packaged Python application,
</span><span style="color:#323232;">    it may be easiest to use pipx install xyz, which will manage a
</span><span style="color:#323232;">    virtual environment for you. Make sure you have pipx installed.
</span><span style="color:#323232;">    
</span><span style="color:#323232;">    See /usr/share/doc/python3.11/README.venv for more information.
</span><span style="color:#323232;">
</span><span style="color:#323232;">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.
</span><span style="color:#323232;">hint: See PEP 668 for the detailed specification.
</span>

Instead, I would create a virtual environment (I’m using virtualenv instead of venv)


<span style="color:#323232;">$ virtualenv unihub_test
</span>

Then activate the environment and run the install with pip


<span style="color:#323232;">$ source ~/unihub_test/bin/activate
</span><span style="color:#323232;">(unihub_test) $ pip install pyusb
</span><span style="color:#323232;">Collecting pyusb
</span><span style="color:#323232;">  Using cached pyusb-1.2.1-py3-none-any.whl.metadata (2.2 kB)
</span><span style="color:#323232;">Using cached pyusb-1.2.1-py3-none-any.whl (58 kB)
</span><span style="color:#323232;">Installing collected packages: pyusb
</span><span style="color:#323232;">Successfully installed pyusb-1.2.1
</span><span style="color:#323232;">
</span><span style="color:#323232;">(unihub_test) $ python3
</span><span style="font-weight:bold;color:#a71d5d;">>>></span><span style="color:#323232;"> import usb </span><span style="font-style:italic;color:#969896;">#this should not error
</span><span style="font-weight:bold;color:#a71d5d;">>>></span><span style="color:#323232;"> exit()
</span><span style="color:#323232;">(unihub_test) $ deactivate
</span><span style="color:#323232;">$ 
</span>

Without the actual hub, that’s as far as I can go I think - but maybe this will help give you some options and documentation to explore!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • lifeLocal
  • goranko
  • All magazines