pytorch / pytorch/vision

Conda package should support pillow-simd

Open
#4,103 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

dependency issue
Dominant language
Python
Stars
17.9k
Forks
7.3k
Avg merge
1d 15h
Merged PRs (30d)
13

Description

🐛 Bug

torchvision Conda package, at least with v0.10.0, depends on pillow, which complicates using pillow-SIMD.

To Reproduce

Steps to reproduce the behavior:

  1. Install torchvision with Conda.
  2. Try to uninstall pillow, but would try to uninstall torchvision. Alternatively, you can do conda remove --force pillow to only remove it, but the environment will be in an inconsistent state. It's the best workaround AFAIK though.
  3. Install pillow-SIMD.

Expected behavior

The expected behavior would be to be able to choose between pillow and pillow-SIMD, or be able to uninstall pillow without breaking things, and then install pillow-SIMD. After this, every time you try installing something with conda, it's gonna try to install pillow again.

Maybe pillow shouldn't be a dependency then? Maybe the ideal solution is to pillow-SIMD to provide a conda package called pillow, or something like that (or like a virtual package to support both?).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the torchvision Conda package dependency metadata and reproducing the reported install, removal, and replacement sequence with pillow-SIMD. Done means users can choose pillow or pillow-SIMD without Conda reinstalling pillow or leaving the environment inconsistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.