ใช่คุณสามารถใช้ pytorch/xla กับรุ่น Python อื่น ๆ นอกเหนือจาก 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-distribute-found-forch-xla-2-5-0- เมื่อวันที่
[2] https://www.restack.io/p/pytorch-answer-python-versions
[3] https://cloud.google.com/blog/products/ai-machine-learning/whats-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-python-3-8-question-about-networkx-version/196740