ivan_pozdeev
ivan_pozdeev

Reputation: 36018

make pip ignore an existing wheel

If a .whl is available online, pip always installs it rather than compiling from source. However, for some specific module, the wheel happened to be compiled for the next processor generation and doesn't run on a specific machine.

If I command it to just download the package, then it still downloads the wheel rather than source. Does pip have some mechanism to override this preference?

Upvotes: 37

Views: 39147

Answers (1)

user707650
user707650

Reputation:

Use the --no-binary option.

pip install <package> --no-binary <package>

Upvotes: 59

Related Questions