torch::deploy (multipy for non-torch uses) is a system that lets you get around the GIL problem by running multiple Python interpreters in a single C++ process.
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
This issue starts to pop up very recently on PyTorch CI when trying to use
multipy
in testing: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 https://github.com/pypa/pip/issues/11358). So that above command won't work for newer pip version anymore.The recommended alternative from pypi is mentioned in https://github.com/pypa/pip/pull/11560: