How to install/compile pip requirements in parallel (make -j equivalent)
问题 I have a lot of packages to install in my pip requirement and I'd like to process them in parallell. I know that, for example, that if I want n parallel jobs from make I have to write make -j n ; is there an equivalent command for pip requirements? Thanks! 回答1: Sometimes pip uses make to build dependencies. If before it starts you set MAKEFLAGS like: export MAKEFLAGS="-j$(nproc)" pip install -r requirements.txt This may help building native dependencies. Note: nproc resovles as the number of