question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Preventing caching

See original GitHub issue

pip has the argument --no-cache-dir which comes in very handy when building small docker images. Does pipenv have a similar option?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
techalchemycommented, Oct 24, 2017

See #451 — you can set this with pip.conf directly

3reactions
thanatoscommented, Jul 19, 2019

The “pointer” appears to be to prevent pip from caching, not pipenv. I’m trying to run pipenv in a production context where we don’t have a writable disk, and AFAICT, pipenv, not pip, wants to call mkdir("/.cache") (/ here is $HOME), which fails, as / isn’t writable. (Nothing is.)

That is, it’s doing:

stat("/.cache/pipenv", 0x7ffc60e1c1d0)  = -1 ENOENT (No such file or directory)
stat("/.cache/pipenv", 0x7ffc60e1c1d0)  = -1 ENOENT (No such file or directory)
stat("/.cache", 0x7ffc60e1c1d0)         = -1 ENOENT (No such file or directory)
stat("/.cache", 0x7ffc60e1c030)         = -1 ENOENT (No such file or directory)
stat("/.cache", 0x7ffc60e1c030)         = -1 ENOENT (No such file or directory)
stat("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
mkdir("/.cache", 0777)                  = -1 EACCES (Permission denied)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Preventing Browser Caching - Tiger Technologies Support
How can I prevent Web browsers from caching my pages? · Setting a short cache time · Controlling which files are affected ·...
Read more >
How to Prevent Caching of Your Web Page - The Tech-FAQ
How to Prevent Caching of Your Web Page · Open Firefox and select the “Tools” pull-down menu. · Select “Options.” · Click the...
Read more >
Prevent unnecessary network requests with the HTTP Cache
The browser's HTTP Cache is your first line of defense. ... Prevent unnecessary network requests with the HTTP Cache.
Read more >
Cache-Control - HTTP - MDN Web Docs
The Cache-Control HTTP header field holds directives ... the origin server. must-revalidate is a way to prevent this from happening - either ...
Read more >
Preventing Caching of JSP Pages - O'Reilly
Preventing Caching of JSP Pages A browser can cache web pages so that it doesn't have to get them from the server every...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found