# What in my project depends on "X"?

**URL:** <https://discuss.python.org/t/what-in-my-project-depends-on-x/105829>\
**Category:** Python Help\
**Tags:** help, packaging-help\
**Created:** [January 21, 2026, 4:51pm UTC](https://discuss.python.org/t/what-in-my-project-depends-on-x/105829 "2026-01-21T16:51:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gwerbin](https://avatars.discourse-cdn.com/v4/letter/g/76d3ee/32.png) [@gwerbin](https://discuss.python.org/u/gwerbin)\
**Post date:** [January 21, 2026, 4:51pm UTC](https://discuss.python.org/t/what-in-my-project-depends-on-x/105829/1 "2026-01-21T16:51:41Z")

</div>

I am having a dependency resolution in my project that I suspect is related to package X, which I do not use but I believe is a transitive dependency of something in my project dependencies.

I want to see what in my project depends, indirectly or directly, on package X. How do I do that?

I tried [pipdeptree](https://pypi.org/project/pipdeptree/), but it appears to require that the packages in question be installed first. However Pip can’t resolve my project dependencies, so I can’t do that!

Is there another tool that can, say, walk through my project deps one at a time, build a dep tree from each, and then let me search the results?

---

<div class="post-metadata">

**Author:** ![gwerbin](https://avatars.discourse-cdn.com/v4/letter/g/76d3ee/32.png) [@gwerbin](https://discuss.python.org/u/gwerbin)\
**Post date:** [January 21, 2026, 4:55pm UTC](https://discuss.python.org/t/what-in-my-project-depends-on-x/105829/2 "2026-01-21T16:55:44Z")

</div>

It turns out that `pip-compile` from [Pip Tools](https://pypi.org/project/pip-tools) was able to resolve dependencies, and the resulting “locked” requirements file contains comments stating which requirement in my project depends on each item in the file.

In my case I was trying to figure out why `aiobotocore` was being included, and it turns out that `s3fs` requires it:

```python
aiobotocore==3.1.1
    # via
    # -c constraints_arm64.txt
    # s3fs

```

I do wonder if other tools can do this, so I invite other answers.

---

<div class="post-metadata">

**Author:** ![abduaziz](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/abduaziz/32/37758_2.png) [@abduaziz](https://discuss.python.org/u/abduaziz)\
**Post date:** [January 21, 2026, 6:03pm UTC](https://discuss.python.org/t/what-in-my-project-depends-on-x/105829/3 "2026-01-21T18:03:22Z")

</div>

You might also try `uv`’s `tree` [command](https://docs.astral.sh/uv/reference/cli/#uv-tree) if migrating to `uv` is not an issue.

---

<div class="post-metadata">

**Author:** ![webknjaz](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/webknjaz/32/2699_2.png) [@webknjaz](https://discuss.python.org/u/webknjaz)\
**Post date:** [January 21, 2026, 9:13pm UTC](https://discuss.python.org/t/what-in-my-project-depends-on-x/105829/4 "2026-01-21T21:13:47Z")

</div>

@sirosen do we need to highlight this use case in the docs?

---

<div class="post-metadata">

**Author:** ![sirosen](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/sirosen/32/8478_2.png) [@sirosen](https://discuss.python.org/u/sirosen)\
**Post date:** [January 22, 2026, 12:17am UTC](https://discuss.python.org/t/what-in-my-project-depends-on-x/105829/5 "2026-01-22T00:17:44Z")

</div>

Although I think it’s worth documenting, I think we need to restructure the docs as a first step.  
We’re currently building a big monolithic page from the readme, and I’d like to have more pages to break things apart – this would be good in a use-case gallery. I’ll open a discussion for us.

* * *

I wonder why we’re able to get a resolution with `pip-compile` if `pip` was failing.  
@gwerbin, if you’re willing and able to share details of the `pip` failure – like the input requirements and your pip and python versions – I’d be curious to take a look. There’s no guarantee that I’d have any useful insights, of course.

---

<div class="post-metadata">

**Author:** ![gwerbin](https://avatars.discourse-cdn.com/v4/letter/g/76d3ee/32.png) [@gwerbin](https://discuss.python.org/u/gwerbin)\
**Post date:** [January 22, 2026, 4:14am UTC](https://discuss.python.org/t/what-in-my-project-depends-on-x/105829/6 "2026-01-22T04:14:02Z")

</div>

Thanks for the offer! I assume you’re a Pip Tools contributor. I’d be happy to share but not on a public forum. It looks like there’s a direct message here so I can follow up there.

Pip Tools has been a core part of my workflow for many years in at least 2 jobs. I am very grateful for it.
