Django'yu yüklemeye çalışırken ilk denemem budur ve ben çalıştırdığımda, Django-1.7.3'ü başarıyla yükledim ancak bu uyarıları aşağıda aldım. İnternette herhangi bir bilgi bulamadım, bu yüzden birisinin ne anlama geldiğini açıklığa kavuşturacağını, onları düzeltmem gerekirse ve bunu nasıl yapabildiğimi umuyordum?sudo pip install django
Teşekkürler! Aşağıda Bu mesajlar sadece sudo
çıktıktan sonra bunun geçerli kullanıcı root
ve root
değiştiğini bildiren olan
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
Teşekkür $ ANA $ ve KULLANICI değişkenlerine çok dikkat edin:
Ayrıca, bu doğrulamak için, deneyebilirsin! Sadece geri gelip beni yolda ısırtacak hatalar olmadığından emin olmak istedim. – Asif
"sudo -H install pip" yerine "sudo install pip" yazmam gerektiği anlamına mı geliyor? – Zelong
Açıklama için teşekkürler; Bu beni deli ediyor. Ancak, en azından Ubuntu 16.04 tarihinde detaylar yanlış görünüyor. Tüm değişkenler için aynı değerleri görüyorum, ancak HOME ve HOME =/root if -H, ve eğer varsa, ev dizinim. Bence söylediklerinin tersi bu. – saulspatz