4

我想从指定的本地目录(从 GitHub 下载)安装一些 python 包requirements.txt

-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(如何避免这种情况?

4

1 回答 1

5

使用--no-dependencies或只是--no-deps选项

pip install --no-dependencies -r requirements.txt
于 2011-09-08T12:17:09.503 回答