[Python-de] Re: pip install /wo/anders ?

Ulli Horlacher <[email protected]>
Newsgroups gmane.comp.python.general.german
Organization University of Stuttgart, FRG
Message-ID <[email protected]>
Peter Heitzer <[email protected]> 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 <module>
> >    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.

root@moep:~# du /opt/pip/lib/python3.6/site-packages
64      /opt/pip/lib/python3.6/site-packages/PySimpleGUIDesigner/__pycache__
208     /opt/pip/lib/python3.6/site-packages/PySimpleGUIDesigner
28      /opt/pip/lib/python3.6/site-packages/PySimpleGUIDesigner-0.1.4.7.dist-info
236     /opt/pip/lib/python3.6/site-packages



> Für dein Problem mit dem Dateiauswahldialog scheint es übrigens keine 
> einfache und schöne Lösung zu geben. Die Klasse tkinter.filedialog.FileDialog
> hat kein natives Look and Feel wie filedialog.askopenfilename().
> In tk gibt es nur entweder Dateiauswahl oder Verzeichnisauswahl und 
> PySimpleGUI ruft nur die von tk zur Verfügung gestellten Funktionen auf.

Ist nicht ganz so tragisch, ich hab jetzt zwei Buttuns implementiert,
einen fuer [add a file] und einen fuer [add a directory]

Meine User muessen halt lernen, was der Unterschied ist :-}

-- 
Ullrich Horlacher              Server und Virtualisierung
Rechenzentrum TIK         
Universitaet Stuttgart         E-Mail: [email protected]
Allmandring 30a                Tel:    ++49-711-68565868
70569 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
_______________________________________________
python-de Mailingliste -- [email protected]
Zur Abmeldung von dieser Mailingliste senden Sie eine Nachricht an [email protected]
https://mail.python.org/mailman3/lists/python-de.python.org/
Mitgliedsadresse: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.