Home Arrow Icon Knowledge base Arrow Icon Global Arrow Icon 我可以将Pytorch/XLA与3.8以外的其他版本一起使用


我可以将Pytorch/XLA与3.8以外的其他版本一起使用


是的,您可以将Pytorch/XLA与3.8以外的其他版本一起使用。但是,兼容性取决于Pytorch/XLA的特定版本和您正在使用的Python版本。

-Pytorch/XLA 2.5:此版本需要Python 3.9至3.11才能兼容。如果您使用的是Python 3.12,则可能会遇到诸如pytorch/XLA 2.5的车轮可用于Python 3.12 [1] [3]之类的问题。

- 普通Pytorch兼容性:Pytorch本身支持一系列Python版本,包括3.8、3.9、3.10,并取决于Pytorch版本。例如,Pytorch v2.4支持Python 3.8至3.10 [2]。

为了确保兼容性,必须检查使用Pytorch/XLA版本的特定要求,并确保您的Python版本符合这些要求。

引用:
[1] https://stackoverflow.com/questions/79314991/why-am-i-getting-no-matching-distribution-distribution-found-found-found-forch-xla-xla-2-5-5-0-当时
[2] https://www.restack.io/p/pytorch-answer-python-versions
[3] https://cloud.google.com/blog/products/ai-machine-learning/whats-new-new-with-pytorchxla-2-5
[4] https://awsdocs-neuron.readthedocs-hosted.com/en/latest/release-notes/torch/torch-neuronx/index.html
[5] https://pytorch.org/xla/master/torch_compile.html
[6] https://pypi.org/project/torch-xla/
[7] https://pytorch.org/xla/release/2.0/index.html
[8] https://discuss.pytorch.org/t/installing-pytorch-under-dunder-python-3-8-question-question-about-networkx-version/196740