Spaces:
Sleeping
Sleeping
Fix: keep numpy 1.26 for TF/MEGNet compat (fairchem works despite metadata)
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -41,10 +41,10 @@ RUN pip install --no-cache-dir --force-reinstall \
|
|
| 41 |
# CRITICAL: Re-install setuptools with pkg_resources AFTER TF downgrade.
|
| 42 |
# The --force-reinstall above installs setuptools>=82 which removed pkg_resources,
|
| 43 |
# but torchtnt (fairchem dep) needs it at runtime. Pin to <72 where it still exists.
|
| 44 |
-
#
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
python -c "import
|
| 48 |
|
| 49 |
COPY . .
|
| 50 |
|
|
|
|
| 41 |
# CRITICAL: Re-install setuptools with pkg_resources AFTER TF downgrade.
|
| 42 |
# The --force-reinstall above installs setuptools>=82 which removed pkg_resources,
|
| 43 |
# but torchtnt (fairchem dep) needs it at runtime. Pin to <72 where it still exists.
|
| 44 |
+
# Note: TF 2.15 pins numpy<2.0 (1.26.4), while fairchem-core 2.13 wants numpy>=2.0.
|
| 45 |
+
# We keep numpy 1.26 (TF's pin) — fairchem works fine at runtime despite the metadata.
|
| 46 |
+
RUN pip install --no-cache-dir "setuptools<72" && \
|
| 47 |
+
python -c "import pkg_resources; print('pkg_resources OK')"
|
| 48 |
|
| 49 |
COPY . .
|
| 50 |
|