diff --git a/python/requirements_mac.txt b/python/requirements_mac.txt index df197930750049258d4b02742bd78e74ba8377d2..6cf10f28aab25f0a9f21ec209b834dac9d850be7 100644 --- a/python/requirements_mac.txt +++ b/python/requirements_mac.txt @@ -1,9 +1,8 @@ numpy>=1.12, <=1.16.4 ; python_version<"3.5" -shapely==1.7.0 +shapely==1.8.0 wheel>=0.34.0, <0.35.0 setuptools>=44.1.0 google>=2.0.3 -opencv-python==4.2.0.32 protobuf>=3.12.2 func-timeout>=4.3.5 pyyaml>=5.1 @@ -16,5 +15,9 @@ Werkzeug==1.0.1 ujson>=2.0.3 grpcio-tools==1.33.2 grpcio>=1.33.2 -sentencepiece==0.1.83 -pillow==8.4.0 +sentencepiece==0.1.96; platform_machine != "aarch64" +sentencepiece; platform_machine == "aarch64" +opencv-python==3.4.17.61; platform_machine != "aarch64" +opencv-python; platform_machine == "aarch64" +pillow==8.4.0 ; python_version == "3.6" +pillow==9.0.0 ; python_version > "3.6" diff --git a/python/setup.py.app.in b/python/setup.py.app.in index 79ddca2744bc014efe98f6040365079405c5fd07..edbbe8406688938ce3a11726dfe477a9edecfa32 100644 --- a/python/setup.py.app.in +++ b/python/setup.py.app.in @@ -46,7 +46,7 @@ REQUIRED_PACKAGES = [ 'pyclipper', 'shapely', 'sentencepiece<=0.1.96; platform_machine != "aarch64"', 'sentencepiece; platform_machine == "aarch64"', - 'opencv-python<=4.3.0.38; platform_machine != "aarch64"', + 'opencv-python==3.4.17.61; platform_machine != "aarch64"', 'opencv-python; platform_machine == "aarch64"', ]