From 5c3cbb58e55d0686894c00b7c0d05d1ee6c0bea2 Mon Sep 17 00:00:00 2001 From: lujun Date: Sat, 15 Jun 2019 09:42:27 +0800 Subject: [PATCH] Update requirement for py2 and py3 (#18068) for py2: matplotlib<=2.2.3 ; python_version<"3.5" scipy>=0.19.0, <=1.2.1 ; python_version<"3.5" nltk>=3.2.2, <=3.4 ; python_version<"3.5" for py3: matplotlib ; python_version>="3.5" scipy ; python_version>="3.5" nltk ; python_version>="3.5" update requests version to >=2.20.0 for CEV-2018-18074 --- python/requirements.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/python/requirements.txt b/python/requirements.txt index 60d56e53220..87623d714bb 100644 --- a/python/requirements.txt +++ b/python/requirements.txt @@ -1,12 +1,15 @@ -requests==2.9.2 +requests>=2.20.0 numpy>=1.12 protobuf>=3.1.0 recordio>=0.1.0 -matplotlib==2.2.3 # TODO: let python3 paddlepaddle package use latest matplotlib +matplotlib<=2.2.3 ; python_version<"3.5" +scipy>=0.19.0, <=1.2.1 ; python_version<"3.5" +nltk>=3.2.2, <=3.4 ; python_version<"3.5" +matplotlib ; python_version>="3.5" +scipy ; python_version>="3.5" +nltk ; python_version>="3.5" rarfile -scipy>=0.19.0,<=1.2.1 Pillow -nltk>=3.2.2 graphviz six funcsigs -- GitLab