Commit 8acca36
committed
Fix installation that causes torch conflict
When pip installs timm==1.0.7 (from requirements-examples.txt), it's pulling its dependencies from PyPI, and since the PyPI version of timm has a dependency on torch without any version constraints, pip is "upgrading" your nightly torch to the latest stable release from PyPI.
Here's what's happening:
I have torch==2.9.0.dev20250725 (nightly) installed
When pip installs timm, it sees that timm requires torch
Pip finds torch==2.7.1 on PyPI (the latest stable release)
Since 2.9.0.dev20250725 is considered a pre-release version, pip thinks 2.7.1 is "newer" in terms of stable releases
Pip uninstalls the nightly and installs the stable version.1 parent 48e4822 commit 8acca36
3 files changed
+40
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | 145 | | |
159 | 146 | | |
160 | 147 | | |
| |||
179 | 166 | | |
180 | 167 | | |
181 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
182 | 206 | | |
183 | 207 | | |
184 | 208 | | |
| |||
0 commit comments