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

"Peter Heitzer" <[email protected]>
Newsgroups gmane.comp.python.general.german
Message-ID <[email protected]>
Ulli Horlacher <[email protected]> wrote:
>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.
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, [email protected]
_______________________________________________
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.