Я пытаюсь установить и настроить Django / MongoDB setup.
Я использую эти инструкции
Эти команды работали нормально:
pip install git+https://github.com/django-nonrel/djangotoolbox
pip install git+https://github.com/django-nonrel/mongodb-engine
Но всякий раз, когда я запускаю
pip install git+https://github.com/django-nonrel/django@nonrel-1.5
застрял!
shubhendu@shubhendu-HP-Pavilion-g6-Notebook-PC:/home/foodballbear/myvenv/bin$ sudo pip install git+https://github.com/django-nonrel/django@nonrel-1.5
[sudo] password for shubhendu:
The directory '/home/shubhendu/.cache/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 sudo's -H flag.
The directory '/home/shubhendu/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting git+https://github.com/django-nonrel/django@nonrel-1.5
Cloning https://github.com/django-nonrel/django (to nonrel-1.5) to /tmp/pip-9mkpehf8-build
Если я скачаю исходный код отдельно, могу ли я его как-нибудь установить?
У меня то же самое, но через час он проходит и переустанавливает django. Я не понимаю, как это происходит, но прошло. Я думаю, что это не правильно. Лучше https://github.com/nesdis/djongo и загляните внутрь setup.py, какова версия django
Collecting git+https://github.com/django-nonrel/django@nonrel-1.5
Cloning https://github.com/django-nonrel/django (to revision nonrel-1.5) to /private/var/folders/0y/r25j6k916ql6zgsjqk7b7txc0000gn/T/pip-req-build-s0vxu1g4
Checking out files: 100% (5524/5524), done.
Branch 'nonrel-1.5' set up to track remote branch 'nonrel-1.5' from 'origin'.
Switched to a new branch 'nonrel-1.5'
django-pagedown 1.0.6 has requirement Django>=1.8, but you'll have django 1.5.11 which is incompatible.
Installing collected packages: Django
Found existing installation: Django 2.1.4
Uninstalling Django-2.1.4:
Successfully uninstalled Django-2.1.4
Running setup.py install for Django ... done
Successfully installed Django-1.5.11