debugging - How can I revert changes done to python packages? -


i'm debugging issue on staging, , i've added bunch of logging statements 3rd party package. once i'm done that, i'd them original state. in ruby, gem pristine lib_name , restore lib it's original source code.

it might relevant mention i'm modifying code installed sudo pip install some_pkg.

what's usual way of reverting changes done lib?

on linux:

just type following command in terminal (with pip, pip2 or pip3, accordingly python version you're targetting):

sudo -h pip install --upgrade --force-reinstall some_pkg 

on windows:

open admin terminal, , run following command (ditto):

pip install --upgrade --force-reinstall some_pkg 

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -