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

Ulli Horlacher <[email protected]>
Newsgroups gmane.comp.python.general.german
Organization University of Stuttgart, FRG
Message-ID <[email protected]>
(OS ist Ubuntu 18.04)

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
Collecting PySimpleGUIDesigner
  Using cached https://files.pythonhosted.org/packages/1e/bd/85cbde9056876f0d74889236fe2f3a2083d40bf807f10dadab774b989e0a/PySimpleGUIDesigner-0.1.4.7-py3-none-any.whl
Requirement already satisfied: PySide2>=5.13 in /usr/local/lib/python3.6/dist-packages (from PySimpleGUIDesigner)
Requirement already satisfied: PySimpleGUI in /usr/local/lib/python3.6/dist-packages (from PySimpleGUIDesigner)
Requirement already satisfied: click>=7.0 in /usr/local/lib/python3.6/dist-packages (from PySimpleGUIDesigner)
Requirement already satisfied: shiboken2==5.15.2 in /usr/local/lib/python3.6/dist-packages (from PySide2>=5.13->PySimpleGUIDesigner)
Requirement already satisfied: importlib-metadata; python_version < "3.8" in /usr/local/lib/python3.6/dist-packages (from click>=7.0->PySimpleGUIDesigner)
Requirement already satisfied: typing-extensions>=3.6.4; python_version < "3.8" in /usr/local/lib/python3.6/dist-packages (from importlib-metadata; python_version < "3.8"->click>=7.0->PySimpleGUIDesigner)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.6/dist-packages (from importlib-metadata; python_version < "3.8"->click>=7.0->PySimpleGUIDesigner)
Installing collected packages: PySimpleGUIDesigner
Successfully installed PySimpleGUIDesigner-0.1.4.7

root@moep:~# du /opt/pip
             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
            236 /opt/pip/lib/python3.6
            236 /opt/pip/lib
              4 /opt/pip/bin
            240 /opt/pip

Aber wie geht dann uninstall?

root@moep:~# pip3 uninstall --prefix /opt/pip PySimpleGUIDesigner

Usage:
  pip uninstall [options] <package> ...
  pip uninstall [options] -r <requirements file> ...

no such option: --prefix


Auch der Aufruf klappt nicht:

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'


-- 
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.