Das ist also mein erster Versuch, Django zu installieren, und als ich es ausführte, installierte es erfolgreich Django-1.7.3, aber ich erhielt diese Warnungen unten. Ich konnte online keine Informationen darüber finden, also hoffte ich, dass jemand klären könnte, was sie meinen, wenn ich sie reparieren muss und wie ich das tun könnte?sudo pip install django
Danke! unten ist die Ausgabe von meinem Terminal
macbook:~ Asif$ sudo pip install Django
Password:
The directory '/Users/Asif/Library/Logs/pip' or its parent directory is not owned by the current user and the debug log has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag.
The directory '/Users/Asif/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag.
The directory '/Users/Asif/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag.
Collecting Django
Downloading Django-1.7.3-py2.py3-none-any.whl (7.4MB)
100% |################################| 7.4MB 2.3MB/s
Installing collected packages: Django
Successfully installed Django-1.7.3
Dank viel bezahlen! Ich wollte nur sicherstellen, dass es sich nicht um Fehler handelt, die zurückkommen und mich die Straße hinunterbeißen würden. – Asif
Bedeutet es, dass ich 'sudo install pip' anstatt 'sudo -H install pip' eingeben sollte? – Zelong
Danke für die Erklärung; Das hat mich verrückt gemacht. Allerdings scheinen die Details zumindest auf Ubuntu 16.04 falsch zu sein. Ich sehe die gleichen Werte für alle Variablen außer HOME und HOME =/root, wenn -H gegeben ist, und mein Home-Verzeichnis, wenn es nicht ist. Ich denke, das ist das Gegenteil von dem, was du sagst. – saulspatz