Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Virtualenv / pip installation log?

Do pip or virtualenv keep a log of installations?

E.g. Say I create a virtualenv and install a package in it.

> source [my virtual env]/bin/activate
> pip install matplotlib

Is there a place where a log of the package installation is kept?

If not, what would be a good way to log package installations ? (other than manually copying the output of pip install to a text file)

like image 819
Amelio Vazquez-Reina Avatar asked Mar 15 '13 17:03

Amelio Vazquez-Reina


2 Answers

When you run the pip, you can specify the logfile.

pip install matplotlib --log LOG_FILE

That file will contain the verbose log

for example,

pip install matplotlib --log log.txt

This will create a log.txt in the same directory and put the log in that.

like image 124
HungryCoder Avatar answered Nov 08 '22 20:11

HungryCoder


If you care about keeping the logs, you probably care also about pip's verbose option

-v, --verbose Give more output. Option is additive, and can be used up to 3 times.

like image 36
Davide Avatar answered Nov 08 '22 19:11

Davide