# Pip install inference\[transformers\] has conflicts because of torch 2.4.0

**URL:** <https://discuss.roboflow.com/t/pip-install-inference-transformers-has-conflicts-because-of-torch-2-4-0/8842>\
**Category:** 🤝  Community Help\
**Created:** [March 2, 2025, 12:58am UTC](https://discuss.roboflow.com/t/pip-install-inference-transformers-has-conflicts-because-of-torch-2-4-0/8842 "2025-03-02T00:58:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LouNL](https://avatars.discourse-cdn.com/v4/letter/l/cab0a1/32.png) [@LouNL](https://discuss.roboflow.com/u/LouNL)\
**Post date:** [March 2, 2025, 12:58am UTC](https://discuss.roboflow.com/t/pip-install-inference-transformers-has-conflicts-because-of-torch-2-4-0/8842/1 "2025-03-02T00:58:09Z")

</div>

I’m trying to install support for OWLv2 using pip install inference[transformers] as I’d like to use a Roboflow instant model with InferencePipeline.

During the install it installs torch 2.4.0 (and if I have a more recent version, it’ll uninstall that)

But at the end of the install I get this error because ultralytics 8.3.40 doesn’t support torch 2.4.0:

ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.  
ultralytics 8.3.40 requires torch!=2.4.0,\>=1.8.0; sys\_platform == “win32”, but you have torch 2.4.0 which is incompatible.

---

<div class="post-metadata">

**Author:** ![Grzegorz](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/grzegorz/32/2877_2.png) [@Grzegorz](https://discuss.roboflow.com/u/Grzegorz)\
**Post date:** [March 3, 2025, 12:49pm UTC](https://discuss.roboflow.com/t/pip-install-inference-transformers-has-conflicts-because-of-torch-2-4-0/8842/2 "2025-03-03T12:49:43Z")

</div>

Hi @LouNL ,

I tried to install `inference[transformers]` and encountered no errors.

Here is what I did:

```bash
echo "inference[transformers]" > requirements.txt
python3.12 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

```

The process completes without error.

I see you already have some packages installed. Can you share more details about your setup? I guess you have `requirements.txt` (or equivalent) in your project, it would help if you can share.

Thanks!  
Grzegorz

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)\
**Post date:** [March 24, 2025, 12:49pm UTC](https://discuss.roboflow.com/t/pip-install-inference-transformers-has-conflicts-because-of-torch-2-4-0/8842/3 "2025-03-24T12:49:49Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
