mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[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:
parent
b8de1cf007
commit
c0fe5fb987
18
README.md
18
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**
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user