Search code examples
pythonpipcentosspacy-3

pip install --no-build-isolation returns no such option: --no-build-isolation


$ pip install --no-build-isolation --editable .

Usage:   
  pip install [options] <requirement specifier> [package-index-options] ...
  pip install [options] -r <requirements file> [package-index-options] ...
  pip install [options] [-e] <vcs project url> ...
  pip install [options] [-e] <local project path> ...
  pip install [options] <archive url/path> ...

no such option: --no-build-isolation

The above works on Ubuntu but not in CentOS.


Solution

  • In certain cases, projects (or redistributors) may have workflows that explicitly manage the build environment. For such workflows, build isolation can be problematic. If this is the case, pip provides a --no-build-isolation flag to disable build isolation. Users supplying this flag are responsible for ensuring the build environment is managed appropriately (including ensuring that all required build dependencies are installed).


    It is from pip documentation v21.1.3, check your pip version.

    If you need upgrade, use python -m pip install --upgrade pip