[BE] Doc Update: Python 3.7 is past End of Life (#94314)

Python 3.7 is no longer supported
Pull Request resolved: https://github.com/pytorch/pytorch/pull/94314
Approved by: https://github.com/seemethere, https://github.com/malfet
This commit is contained in:
Zain Rizvi 2023-02-08 17:34:45 +00:00 committed by PyTorch MergeBot
parent b8de1cf007
commit c0fe5fb987

View File

@ -238,15 +238,15 @@ export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-"$(dirname $(which conda))/../"}
python setup.py develop python setup.py develop
``` ```
Note that if you are using [Anaconda](https://www.anaconda.com/distribution/#download-section), you may experience an error caused by the linker: > _Aside:_ If you are using [Anaconda](https://www.anaconda.com/distribution/#download-section), you may experience an error caused by the linker:
>
```plaintext > ```plaintext
build/temp.linux-x86_64-3.7/torch/csrc/stub.o: file not recognized: file format not recognized > build/temp.linux-x86_64-3.7/torch/csrc/stub.o: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status > collect2: error: ld returned 1 exit status
error: command 'g++' failed with exit status 1 > error: command 'g++' failed with exit status 1
``` > ```
>
This is caused by `ld` from the Conda environment shadowing the system `ld`. You should use a newer version of Python that fixes this issue. The recommended Python version is 3.7.6+ and 3.8.1+. > This is caused by `ld` from the Conda environment shadowing the system `ld`. You should use a newer version of Python that fixes this issue. The recommended Python version is 3.8.1+.
**On macOS** **On macOS**