I like to edit python modules installed with pip
. But, I do not know good way to avoid conflicts between local update and original one when upgrade a module.
For example,
$ pip install some_module
$ vim ~/.../some_module/something.py # update the file
$ pip install --upgrade some_module
It should occurs some trouble because of conflicts between local and original repository. (The assumption that original repo is on github is OK)
I guess One of alternatives is forking repository on github and pip install git+<repo_url>
, but I'm not have confident.
What is good way to avoid this trouble?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…