Answer the question
In order to leave comments, you need to log in
How to install only uninstalled applications via pip install -r requirements txt?
When I run the command, it downloads and installs applications, but how to check if the application is installed and install only those that are not installed?
Answer the question
In order to leave comments, you need to log in
Generally speaking, pip does just that—it installs a package only if the specified requirement is not met:
(.virtualenv) $ pip freeze > requirements.txt
(.virtualenv) $ pip install -r requirements.txt
Requirement already satisfied (use --upgrade to upgrade): Django==1.9 in ./.virtualenv/lib/python3.4/site-packages (from -r requirements.txt (line 2))
Requirement already satisfied (use --upgrade to upgrade): dj-database-url==0.3.0 in ./.virtualenv/lib/python3.4/site-packages (from -r requirements.txt (line 3))
Requirement already satisfied (use --upgrade to upgrade): psycopg2==2.6.1 in ./.virtualenv/lib/python3.4/site-packages (from -r requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): wheel==0.26.0 in ./.virtualenv/lib/python3.4/site-packages (from -r requirements.txt (line 5))
Cleaning up...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question