Manage Python Modules Repeatedly Updated In Both Local And Original Repository
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 ins
Solution 1:
You should not be editing the core files of a module, if you need to modify it you should be extending (subclassing) it and over-riding the functionality and adding your own functions, that way your code is separate from the repo's code and won't be over-written by an update or upgrade
You could also Use a virtual environment, a virtual environment is an isolated python installation/environment, it makes it easy to manage dependencies and different version of libraries/ version of python
this should get you started
Post a Comment for "Manage Python Modules Repeatedly Updated In Both Local And Original Repository"