Home Arrow Icon Knowledge base Arrow Icon Global Arrow Icon 我可以使用Pytorch/XLA与Python 3.11


我可以使用Pytorch/XLA与Python 3.11


目前,Pytorch/XLA支持Linux发行版的Python版本最高3.11。但是,有特定的要求和局限性。例如,要安装`torch_xla`版本2.5,您需要确保与Python 3.9至3.11的兼容性,因为没有适用于Python 3.12或更高版本的车轮[3] [4]。此外,Pytorch本身不支持Windows [7]上的Python 3.11。

对于Pytorch/XLA版本2.6及以后,将为Python 3.11提供支持,包括使用C ++ 11 ABI构建的车轮,可以使用特定命令[5]安装。因此,虽然Pytorch/XLA可以与Linux上的Python 3.11一起使用,但它需要仔细的版本管理和安装。

引用:
[1] https://github.com/pytorch/xla/releases
[2] https://pytorch.org/xla/release/2.0/index.html
[3] https://stackoverflow.com/questions/79314991/why-am-i-getting-no-matching-distribution-found-found-found-found-torch-xla-xla-2-5-5-0-当时
[4] https://awsdocs-neuron.readthedocs-hosted.com/en/latest/general/appnotes/torch-neuronx/introducing-pytorch-pytorch-2--x.html
[5] https://github.com/pytorch/xla
[6] https://github.com/pytorch/xla/issues/4
[7] https://discuss.pytorch.org/t/pytorch-does-not-support-python-3-11/173747
[8] https://pytorch.org/xla/master/gpu.html