Wie wird „egg=" in „pip install -e" verwendet?Python

Python-Programme
Anonymous
 Wie wird „egg=" in „pip install -e" verwendet?

Post by Anonymous »

Ich versuche bearbeitbare Installationen zu testen und bin mir nicht sicher, wie ich die Ergebnisse interpretieren soll.
Ich habe absichtlich einen Tippfehler im Teil „egg=“ gemacht, aber es konnte das Ei trotzdem ohne meine Hilfe finden:

Code: Select all

root@6be8ee41b6c9:/# pip3 install -e git+https://gitlab.com/jame/clientapp.git
Could not detect requirement name for 'git+https://gitlab.com/jame/clientapp.git', please specify one with #egg=your_package_name

root@6be8ee41b6c9:/# pip3 install -e git+https://gitlab.com/jame/clientapp.git#egg=
Could not detect requirement name for 'git+https://gitlab.com/jame/clientapp.git#egg=', please specify one with #egg=your_package_name

root@6be8ee41b6c9:/# pip3 install -e git+https://gitlab.com/jame/clientapp.git#egg=e
Obtaining e from git+https://gitlab.com/jame/clientapp.git#egg=e
Cloning https://gitlab.com/jame/clientapp.git to /src/e
Running setup.py (path:/src/e/setup.py) egg_info for package e produced metadata for project name clientapp. Fix your #egg=e fragments.
Installing collected packages: clientapp
Found existing installation: ClientApp 0.7
Can't uninstall 'ClientApp'. No files were found to uninstall.
Running setup.py develop for clientapp
Successfully installed clientapp

root@6be8ee41b6c9:/# pip3 freeze
asn1crypto==0.24.0
-e git+https://gitlab.com/jame/clientapp.git@5158712c426ce74613215e61cab8c21c7064105c#egg=ClientApp
cryptography==2.6.1
entrypoints==0.3
keyring==17.1.1
keyrings.alt==3.1.1
pycrypto==2.6.1
PyGObject==3.30.4
pyxdg==0.25
SecretStorage==2.3.1
six==1.12.0
Wenn ich also den Ei-Namen so vermasseln könnte, warum wird es dann als Fehler angesehen, ihn entweder leer zu lassen oder auf etwas Leeres zu setzen

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post