Skip to content

Commit

Permalink
Pin python pillow to "<7" due to torchvision 1.2.0 dependency issue (a…
Browse files Browse the repository at this point in the history
…pache#4632)

* As a result of backwards incompatible changes released in pillow 7.0,
   torchvision crashes if you just "pip install pillow", as we do in
   a few places.

 * This patch sets pillow<7 to be installed in Dockerfiles and support
   material as tutorials and documentation.
  • Loading branch information
leandron authored and tqchen committed Jan 6, 2020
1 parent 453d0c8 commit 7ffd5c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tutorials/autotvm/tune_relay_vta.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#
# .. code-block:: bash
#
# pip3 install --user psutil xgboost tornado mxnet requests pillow
# pip3 install --user psutil xgboost tornado mxnet requests "Pillow<7"
#
# To make TVM run faster during tuning, it is recommended to use cython
# as FFI of TVM. In the root directory of TVM, execute
Expand Down
2 changes: 1 addition & 1 deletion tutorials/frontend/deploy_vision_on_vta.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# .. code-block:: bash
#
# pip3 install --user mxnet requests pillow
# pip3 install --user mxnet requests "Pillow<7"
#
# Now return to the python code. Import packages.

Expand Down

0 comments on commit 7ffd5c5

Please sign in to comment.