Pip包安装与预先安装的依赖项

时间:2011-09-08 07:36:04

标签: python django pip django-cms

我想从requirements.txt

中指定的本地目录(从GitHub下载)安装一些python包
-e ./src/django-django-eca4737
-e ./src/divio-django-appmedia-55835b6
-e ./src/ojii-django-sekizai-25c64f4
-e ./src/ojii-django-classy-tags-f2076f6
-e ./src/theatlantic-django-south-471b16b
-e ./src/etianen-django-reversion-bdb9e8e
-e ./src/django-mptt-django-mptt-7d3e111
-e ./src/jezdez-django-appconf-53c5de7
-e ./src/jezdez-django_compressor-c726239
-e ./src/mongodb-mongo-python-driver-fcb88ee
-e ./src/divio-django-cms-66fbff0
PIL
wsgiref

但是,在pip从本地目录(pip install -r requirements.txt)安装软件包之后,它还会将它们作为DjangoCMS依赖项(相同版本!)从远程repos安装它们。怎么避免这个?

1 个答案:

答案 0 :(得分:5)

使用--no-dependencies--no-deps选项

pip install --no-dependencies -r requirements.txt