Skip to content

Deprecated pip option --install-options #322

Open
@huydhn

Description

@huydhn

This issue starts to pop up very recently on PyTorch CI when trying to use multipy in testing:

+ pip install -e . --install-option=--cudatests

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> ...

For example, https://github.com/pytorch/pytorch/actions/runs/5275114822/jobs/9540566837. After digging around a bit, it turns out that --install-option has been deprecated since pip 23.1 (2023-04-15) https://pip.pypa.io/en/stable/news/ (track in pypa/pip#11358). So that above command won't work for newer pip version anymore.

The recommended alternative from pypi is mentioned in pypa/pip#11560:

This option is deprecated. Using this option with location-changing options may cause unexpected behavior.  Use pip-level options like --user, --prefix, --root, and --target

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions