pip install 卡在克隆处 - 是否可以单独下载包,存储并从中安装?

pip install 卡在克隆处 - 是否可以单独下载包,存储并从中安装?

我正在尝试安装和配置 Django/MongoDB 设置。

我在用着这些说明

这些命令运行良好:

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/[email protected]

它卡住了!

shubhendu@shubhendu-HP-Pavilion-g6-Notebook-PC:/home/foodballbear/myvenv/bin$ sudo pip install git+https://github.com/django-nonrel/[email protected]
[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/[email protected]
  Cloning https://github.com/django-nonrel/django (to nonrel-1.5) to /tmp/pip-9mkpehf8-build

如果我单独下载源代码,我可以以某种方式安装它吗?

答案1

在此处输入图片描述

我也遇到过同样的问题,但一个小时后就好了,然后重新安装了 django。我不明白为什么会发生这种情况,但还是好了。我觉得不对劲。好多了https://github.com/nesdis/djongo看看 setup.py 里面的 django 版本

    Collecting git+https://github.com/django-nonrel/[email protected]
  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

相关内容