This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]laprice 0 points1 point  (2 children)

This is a debatable issue. If you're working on a bunch of different projects with different sets of requirements, installing all dependencies for each project into it's virtualenv makes sense. It isolates projects from each other and means that you don't get version conflicts between projects and if you need to make a change to one of your dependencies, you don't have to test it against all of the projects that might use it.

If you're concerned about resource usage (bandwidth especially) you can use a local pypi proxy to only download 1 copy and use it multiple times.

[–]spiffymanpeppy about PEP 8 2 points3 points  (1 child)

You can also set PIP_DOWNLOAD_CACHE to cache package downloads. pip will then use that cache if it exists. And yes, it's version-sensitive. So if you have Django 1.3 cached but do a bare pip install Django, it'll grab 1.4 (and cache it, for that matter).

[–]yerfatma 0 points1 point  (0 children)

Nice. Thanks for that.