I'm using pip
and a requirements.txt
file to handle my python packages in my virtualenv. I have a particular package I install from Github so that inside my file I have:
git+ssh://git@github.com/myuser/mypackage.git#egg=mypackage
Since I'm working on the package quite often I need to re-install it but:
pip install -r requirements.txt
gives me back
Requirement already satisfied (use --upgrade to upgrade)...
for all the packages in requirements.txt that have new versions.
If I run pip install -r requirements.txt --upgrade
it tries to upgrade all my packages (that I do NOT want) but I want to upgrade only mypackage
. In requirements.txt I've tried to add a specific commit, like so:
git+ssh://git@github.com/myuser/mypackage.git@733c5b616da27cba14478c24b#egg=mypackage
But when I run pip again it throws:
Requirement already satisfied (use --upgrade to upgrade)..bla bla bla
QUESTION:
- Is there a way to upgrade only the specific package
mypackage
possibily using the requirements.txt file? - Do I need to specify the
#egg=mypackage
?