Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Peter Heitzer" Newsgroups: de.comp.lang.python Subject: Re: pip install /wo/anders ? Date: 11 Nov 2021 08:04:05 GMT Lines: 40 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net iHo3PpFY8u0q2+KDabeDWAlDJkFgS6aZ4GVLkGnVglxXM6WmYiwbvzn6VR X-Orig-Path: not-for-mail Cancel-Lock: sha1:f4Dte89xJQ4acg+Rlhj5D0iRxO4= User-Agent: tin/2.4.3-20181224 ("Glen Mhor") (UNIX) (Linux/4.19.0-13-amd64 (x86_64)) Xref: csiph.com de.comp.lang.python:5760 Ulli Horlacher wrote: >Peter Heitzer wrote: >> >Mir gefaellt nicht, dass pip /usr/local/ vollkleistert, ich moechte das >> >unter /opt/pip/ haben. >> >> >Gefunden hab ich die --prefix Option, installieren klappt schon mal: >> >> >root@moep:~# pip3 install --prefix /opt/pip PySimpleGUIDesigner >> >framstag@moep:~: /opt/pip/bin/PySimpleGUIDesigner >> >Traceback (most recent call last): >> > File "/opt/pip/bin/PySimpleGUIDesigner", line 7, in >> > from PySimpleGUIDesigner.main import cli >> >ModuleNotFoundError: No module named 'PySimpleGUIDesigner' >> >> pip kennt nur die Standardorte für Packages. Wenn du andere Verzeichnisse >> verwendest, musst du das Python über die Environvariable PYTHONPATH >> mitteilen. >Prima, der Aufruf klappt so: >PYTHONPATH=/opt/pip/lib/python3.6/site-packages /opt/pip/bin/PySimpleGUIDesigner >Schon mal gut :-) >> Zum Deinstallieren: >> PYTHONPATH=$HOME/jodel/lib/python3.7/site-packages/ pip3 uninstall PySimpleGUIDesigner >> Uninstalling PySimpleGUIDesigner-0.1.4.7: >Leider funktioniert das bei mir nicht: >root@moep:~# PYTHONPATH=/opt/pip/lib/python3.6/site-packages pip3 uninstall /opt/pip PySimpleGUIDesigner >Directory '/opt/pip' is not installable. File 'setup.py' not found. Du musst das '/opt/pip' nach uninstall weglassen. Durch PYTHONPATH hast du ja pip schon gesagt, wo es nach Paketen suchen soll. -- Dipl.-Inform(FH) Peter Heitzer, peter.heitzer@rz.uni-regensburg.de