From 05514f8a825798b6cacddcfc8b7f77c4bf1c1433 Mon Sep 17 00:00:00 2001 From: Myle Ott Date: Mon, 16 Dec 2019 19:46:03 -0800 Subject: [PATCH] Update README to indicate we only support Python >= 3.6 (fixes #1317) Summary: Pull Request resolved: https://github.com/fairinternal/fairseq-py/pull/952 Differential Revision: D19133348 Pulled By: myleott fbshipit-source-id: 51f96ddb13386143fe0088f19f7cb0674755811f --- README.md | 2 +- setup.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 48f854ef7..a14baf4c2 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ and [RoBERTa](https://pytorch.org/hub/pytorch_fairseq_roberta/) for more example # Requirements and Installation * [PyTorch](http://pytorch.org/) version >= 1.2.0 -* Python version >= 3.5 +* Python version >= 3.6 * For training new models, you'll also need an NVIDIA GPU and [NCCL](https://github.com/NVIDIA/nccl) * **For faster training** install NVIDIA's [apex](https://github.com/NVIDIA/apex) library with the `--cuda_ext` option diff --git a/setup.py b/setup.py index 98a7bdf00..e31f81246 100644 --- a/setup.py +++ b/setup.py @@ -9,8 +9,8 @@ from setuptools import setup, find_packages, Extension import sys -if sys.version_info < (3, 5): - sys.exit('Sorry, Python >=3.5 is required for fairseq.') +if sys.version_info < (3, 6): + sys.exit('Sorry, Python >= 3.6 is required for fairseq.') with open('README.md') as f: @@ -122,7 +122,6 @@ setup( classifiers=[ 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Topic :: Scientific/Engineering :: Artificial Intelligence', ],