Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated pip option --install-options #322

Open
huydhn opened this issue Jun 15, 2023 · 2 comments
Open

Deprecated pip option --install-options #322

huydhn opened this issue Jun 15, 2023 · 2 comments

Comments

@huydhn
Copy link
Contributor

huydhn commented Jun 15, 2023

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
@malfet
Copy link
Contributor

malfet commented Jun 15, 2023

Which is likely caused by https://hud.pytorch.org/pytorch/pytorch/commit/5efdcd5802ec58c70e66e509cab43887e1253221 that updated our pip version inadvertently

@PaliC
Copy link
Contributor

PaliC commented Jun 15, 2023

Fixed by #323

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants