» »

Kako namestit modul "pid" (Python) na Debian?

Kako namestit modul "pid" (Python) na Debian?

HotBurek ::

Dobro jutro, fantje in dekline.

Nov dan, nov problem.


V Python-u sem imel delujoč pid package, kateri pa sedaj ne deluje.
ModuleNotFoundError: No module named 'pid'

Če ga poizkušam namestit preko pip3, dobim sledeč error:
root@debian:/# pip3 install pid
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. 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.

Preko apt ga prav tako ne morem namestit (ga ne najde):
root@debian:/# apt-get install python3-pid
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package python3-pid

In sedaj ne vem, kaj še naj poizkusim.
root@debian:/# iptraf-ng
fatal: This program requires a screen size of at least 80 columns by 24 lines
Please resize your window
  • spremenilo: HotBurek ()

HotBurek ::

Ok, zadevo sem rešil z uporabo --break-system-packages.

Vir: https://stackoverflow.com/questions/756...

Ne vem pa, kje je zdej na disku ta package.
root@debian:/# iptraf-ng
fatal: This program requires a screen size of at least 80 columns by 24 lines
Please resize your window

Ahim ::

Zakaj pa nisi sel po prvi predlagani poti?
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.

HotBurek ::

Ta venv mi je neznanka in ne ne znam uporabljat.
root@debian:/# iptraf-ng
fatal: This program requires a screen size of at least 80 columns by 24 lines
Please resize your window

pegasus ::

Ahim ::

HotBurek je izjavil:

Ta venv mi je neznanka in ne ne znam uporabljat.

Potem se ti pa splaca malo ustavit, vlozit kak dan v to in nastudirat, ce mislis se napej s Pythonom delat.

Ales ::

Alternativno, poglej https://software.opensuse.org/download....

Ampak dejansko poglej vsebino paketa, preden ga kar tako nameščaš.


Vredno ogleda ...

TemaSporočilaOglediZadnje sporočilo
TemaSporočilaOglediZadnje sporočilo
»

[linux] python update -> izginil taskbar, ikone, terminal ne deluje

Oddelek: Pomoč in nasveti
5561 (335) Invictus
»

Python PyCharm in Pandas/NumPy paketi

Oddelek: Programiranje
12955 (630) bluefish
»

Postavitev mySQL

Oddelek: Programiranje
92231 (1809) M01O
»

Uporaba py2exe, Freeze in py2app

Oddelek: Programska oprema
7752 (591) filips
»

[python] težave z namestitvijo setuptools, pypi

Oddelek: Programiranje
11861 (757) ragezor

Več podobnih tem