Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do prevent pip and easy_install from removing the temporary directories?

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

like image 601
sorin Avatar asked Apr 28 '16 08:04

sorin


People also ask

How does pip help in efficient management of your Python codes?

The pip command looks for the package in PyPI, resolves its dependencies, and installs everything in your current Python environment to ensure that requests will work. The pip install <package> command always looks for the latest version of the package and installs it.

What pip is and one benefit of using pip Python?

Pip is a package manager for Python that allows you to install additional libraries and packages that are not part of the standard Python library such as the ones found in the Python Package Index. It is a replacement for an easy install. If your version of Python is 2.7.

Does pip install globally?

The Pip Package Manager can be used to list both globally and locally installed Python packages.

What is the use of pip?

pip is the de facto and recommended package-management system written in Python and is used to install and manage software packages. It connects to an online repository of public packages, called the Python Package Index.


1 Answers

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
like image 156
Peter Bašista Avatar answered Sep 24 '22 01:09

Peter Bašista