Forum » Programiranje » 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.
Če ga poizkušam namestit preko pip3, dobim sledeč error:
Preko apt ga prav tako ne morem namestit (ga ne najde):
In sedaj ne vem, kaj še naj poizkusim.
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
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.
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
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
fatal: This program requires a screen size of at least 80 columns by 24 lines
Please resize your window
Ahim ::
Ales ::
Alternativno, poglej https://software.opensuse.org/download....
Ampak dejansko poglej vsebino paketa, preden ga kar tako nameščaš.
Ampak dejansko poglej vsebino paketa, preden ga kar tako nameščaš.
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | [linux] python update -> izginil taskbar, ikone, terminal ne delujeOddelek: Pomoč in nasveti | 561 (335) | Invictus |
» | Python PyCharm in Pandas/NumPy paketiOddelek: Programiranje | 955 (630) | bluefish |
» | Postavitev mySQLOddelek: Programiranje | 2231 (1809) | M01O |
» | Uporaba py2exe, Freeze in py2appOddelek: Programska oprema | 752 (591) | filips |
» | [python] težave z namestitvijo setuptools, pypiOddelek: Programiranje | 861 (757) | ragezor |