I'm using a bunch of python packages for my research that I install in my home directory using the --user
option of pip. There are also some packages that were installed by the package manager of my distribution for other things. I would like to have a pip command that only upgrade the packages I installed myself with the --user
option.
I tried the recommend version pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs pip install -U
but this seems to only work using virtualenvs. pip freeze --local
is showing packages that are installed for my user and systemwide.
Is there a way to upgrade only the packages installed locally for my user?