From c0fe5fb98729529ce7e6612f23c67fc803bee5df Mon Sep 17 00:00:00 2001 From: Zain Rizvi Date: Wed, 8 Feb 2023 17:34:45 +0000 Subject: [PATCH] [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 --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 98b5a3b0da5..8bc52bc60af 100644 --- a/README.md +++ b/README.md @@ -238,15 +238,15 @@ export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-"$(dirname $(which conda))/../"} 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: - -```plaintext -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 -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+. +> _Aside:_ If you are using [Anaconda](https://www.anaconda.com/distribution/#download-section), you may experience an error caused by the linker: +> +> ```plaintext +> 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 +> 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.8.1+. **On macOS**