How to pip install packages of requirements.txt one by one

By default, Pip installs all packages of requirements.txt wthin one transaction, which means one failure will lead to a total failure.

Using the following command, to install one by one:

cat requirements.txt | xargs -n 1 pip install

This article is originally created by tooli.top. Please indicate the source when reprinting : https://www.tooli.top/posts/pip_separately

Posted on 2022-03-25 Mail to author