Quindi questo è il mio primo tentativo di installare Django, e quando l'ho eseguito, ha installato correttamente Django-1.7.3 ma ho ricevuto questi avvisi di seguito. Non ero in grado di trovare alcuna informazione su di esso online, quindi speravo che qualcuno potesse chiarire cosa intendessero, se dovessi risolverli, e come potrei farlo?sudo pip installa django
Grazie! al di sotto è l'uscita dal mio terminale
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
Grazie mille per la risposta! Volevo solo assicurarmi che non fossero errori che sarebbero tornati e mordermi lungo la strada. – Asif
Significa che dovrei digitare "sudo install pip" piuttosto che "sudo -H install pip"? – Zelong
Grazie per la spiegazione; questo mi sta facendo impazzire Tuttavia, i dettagli sembrano essere sbagliati, almeno su Ubuntu 16.04. Vedo gli stessi valori per tutte le variabili ma HOME, e HOME =/root se -H è dato, e la mia home directory se non lo è. Penso che questo sia il contrario di quello che dici. – saulspatz