Skip to content

Use of --ignore-installed in TensorFlow's step_install #1536

@agijsberts

Description

@agijsberts

TensorFlow's EasyBlock installs the produced wheel package via
pip install --ignore-installed

cmd = "pip install --ignore-installed --prefix=%s %s" % (self.installdir, whl_paths[0])

As a consequence, it pulls in binary wheels of all dependencies, including for example NumPy. So loading the TensorFlow module will replace the NumPy as part of the Python package (linked against MKL in my case) with a precompiled NumPy linked against a pre-shipped OpenBLAS. Is this intended behavior?

At least on our systems, removing --ignore-installed leads to desired behavior, i.e. pip does not install those dependencies that were already satisfied via dependent modules.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions