From 1b03ab3899a3a0f9f2675a838fb99a20a302c14d Mon Sep 17 00:00:00 2001 From: Tao Luo Date: Wed, 19 Aug 2020 14:11:38 +0800 Subject: [PATCH] set opencv-python <=4.2.0.32 (#26415) --- paddle/scripts/paddle_build.sh | 3 ++- python/requirements.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 4bd93da72ef..921455d52ec 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -580,7 +580,8 @@ function generate_api_spec() { cd ${PADDLE_ROOT}/build/.check_api_workspace virtualenv .${spec_kind}_env source .${spec_kind}_env/bin/activate - pip install ${PADDLE_ROOT}/build/python/dist/*whl + pip install -r ${PADDLE_ROOT}/python/requirements.txt + pip --no-cache-dir install ${PADDLE_ROOT}/build/python/dist/*whl spec_path=${PADDLE_ROOT}/paddle/fluid/API_${spec_kind}.spec python ${PADDLE_ROOT}/tools/print_signatures.py paddle > $spec_path diff --git a/python/requirements.txt b/python/requirements.txt index 76e6b5dedbe..28c84c1d630 100644 --- a/python/requirements.txt +++ b/python/requirements.txt @@ -1,3 +1,4 @@ +opencv-python<=4.2.0.32 requests>=2.20.0 numpy>=1.13, <=1.16.4 ; python_version<"3.5" numpy>=1.13 ; python_version>="3.5" -- GitLab