14

I need to debug some failures to install packages using pip and it seems that once I get the error pip is removing all the temporary files, preventing me from looking inside and finding what happened.

The gist below contains the error that I get but I do want to find-out which config file is generating this error and all the files from tmp are removed by the time the script ends.

https://gist.github.com/ssbarnea/b373062dd45de92735c7482b2735c5fb

sorin
  • 161,544
  • 178
  • 535
  • 806

1 Answers1

14

From my experience with pip 19.0.3, it is sufficient to use the --no-clean option, which is available to both pip install and pip wheel.

It can also be specified in the respective sections of the pip configuration file:

[install]
no-clean = true

[wheel]
no-clean = true
Peter Bašista
  • 749
  • 9
  • 22