Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3807318
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T14:58:20+00:00 2026-05-19T14:58:20+00:00

I install a lot of the same packages in different virtualenv environments. Is there

  • 0

I install a lot of the same packages in different virtualenv environments. Is there a way that I can download a package once and then have pip install from a local cache?

This would reduce download bandwidth and time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T14:58:21+00:00Added an answer on May 19, 2026 at 2:58 pm

    Updated Answer 19-Nov-15

    According to the Pip documentation:

    Starting with v6.0, pip provides an on by default cache which functions similarly to that of a web browser. While the cache is on by default and is designed do the right thing by default you can disable the cache and always access PyPI by utilizing the --no-cache-dir option.

    Therefore, the updated answer is to just use pip with its defaults if you want a download cache.

    Original Answer

    From the pip news, version 0.1.4:

    Added support for an environmental variable $PIP_DOWNLOAD_CACHE which will cache package downloads, so future installations won’t require large downloads. Network access is still required, but just some downloads will be avoided when using this.

    To take advantage of this, I’ve added the following to my ~/.bash_profile:

    export PIP_DOWNLOAD_CACHE=$HOME/.pip_download_cache
    

    or, if you are on a Mac:

    export PIP_DOWNLOAD_CACHE=$HOME/Library/Caches/pip-downloads
    

    Notes

    1. If a newer version of a package is detected, it will be downloaded and added to the PIP_DOWNLOAD_CACHE directory. For instance, I now have quite a few Django packages.
    2. This doesn’t remove the need for network access, as stated in the pip news, so it’s not the answer for creating new virtualenvs on the airplane, but it’s still great.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There are a lot of tutorials that show on how to merge multiple files
When I install packages in linux environment I can set the automatic 'yes' option,
I need to install a piece of software with a lot of files. Our
What install tool can I use to create Virtual Directory on IIS? OpenSource, free
We install Matlab Runtime on a machine, then we restart a .net windows service
I've noticed that on rubygems.org a lot of the gems suggest you specify them
I install a lot of operating systems (both Linux and Windows) on VMs. After
I have a deployment project built with Visual Studio 2008 that fails to install.
I'm writing a small app that needs to have a super easy install process.
I have a makefile for building a lot of libraries that depend on each

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.