When installing a python package via pip
, can I make the folder in which this package is installed a git
repo by default?
After installing a package with pip (like pip install numpy --user
) I frequently change lines of code in the site-packages
folder in which it is installed. After some time, I invariably lose track of the changes I have made, and regret not having tracked the folder with git. Can I make every folder in site-packages
containing a package installed with pip a git repo by default? (If I recall correctly, the package management system of Julia
had such a facility, for example.)