glotzerlab / freud

Powerful, efficient particle trajectory analysis in scientific Python.
https://freud.readthedocs.io
BSD 3-Clause "New" or "Revised" License
282 stars 49 forks source link

Cannot install latest version using `micromamba` on Windows #1293

Closed a-ws-m closed 2 weeks ago

a-ws-m commented 2 weeks ago

Description

Creating a new environment with micromamba create -n freud_test freud on Windows will only install Python 3.8 and Freud 2.2.0. Pinning a later Python version reveals an issue with the python_abi requirement.

Steps to Reproduce

micromamba create -n freud_test freud "python=3.12"

Error Output

error    libmamba Could not solve for environment specs
    The following packages are incompatible
    ├─ freud is installable with the potential options
    │  ├─ freud [2.0.0|2.0.1|2.1.0|2.2.0] would require
    │  │  └─ python >=3.6,<3.7.0a0, which can be installed;
    │  ├─ freud [2.10.0|2.11.0|...|3.1.0] would require
    │  │  └─ python_abi =3.10 *_cp310, which conflicts with any installable versions previously reported;
    │  ├─ freud [2.11.0|2.12.0|...|3.1.0] would require
    │  │  └─ python_abi =3.11 *_cp311, which conflicts with any installable versions previously reported;
    │  ├─ freud [2.10.0|2.11.0|...|3.0.0] would require
    │  │  └─ python_abi =3.8 *_cp38, which conflicts with any installable versions previously reported;
    │  ├─ freud [2.10.0|2.11.0|...|3.1.0] would require
    │  │  └─ python_abi =3.9 *_cp39, which conflicts with any installable versions previously reported;
    │  ├─ freud [2.13.1|2.13.2|3.0.0|3.1.0] would require
    │  │  └─ python_abi =3.12 *_cp312, which conflicts with any installable versions previously reported;
    │  ├─ freud 3.1.0 would require
    │  │  └─ tbb >=2021.13.0, which conflicts with any installable versions previously reported;
    │  ├─ freud [2.0.0|2.0.1|2.1.0|2.2.0] would require
    │  │  └─ python >=3.7,<3.8.0a0, which can be installed;
    │  ├─ freud [2.0.1|2.1.0|2.2.0] would require
    │  │  └─ python >=3.8,<3.9.0a0, which can be installed;
    │  ├─ freud [2.10.0|2.11.0|...|2.9.0] would require
    │  │  └─ python_abi =3.7 *_cp37m, which conflicts with any installable versions previously reported;
    │  └─ freud [2.2.0|2.3.0|...|2.7.0] would require
    │     └─ python_abi =3.6 *_cp36m, which conflicts with any installable versions previously reported;
    └─ python =3.12 is not installable because there are no viable options
       ├─ python [3.12.0|3.12.1|...|3.12.7] conflicts with any installable versions previously reported;
       └─ python 3.12.0rc3 would require
          └─ _python_rc, which does not exist (perhaps a missing channel).
critical libmamba Could not solve for environment specs

freud Version

None

Python Version

3.12

System Platform

Windows

Installation method

Download from conda-forge

Developer

Would someone else please fix this?

joaander commented 2 weeks ago

I am not able to reproduce this problem. Did you configure micromamba without conda-forge? Your .condarc (or .mambarc) file should contain:

channels:
  - conda-forge
  - nodefaults
channel_priority: strict
>micromamba create -n freud_test freud python=3.12
  Updating specs:

   - freud
   - python=3.12

  Package                 Version  Build                  Channel          Size
---------------------------------------------------------------------------------
  Install:
---------------------------------------------------------------------------------

  + bzip2                   1.0.8  h2466b09_7             conda-forge      55kB
  + ca-certificates     2024.8.30  h56e8100_0             conda-forge     159kB
  + freud                   3.1.0  py312h15f6a7d_2        conda-forge       1MB
  + intel-openmp         2025.0.0  h57928b3_1164          conda-forge       2MB
  + libblas                 3.9.0  8_mkl                  conda-forge       4MB
  + libcblas                3.9.0  8_mkl                  conda-forge       4MB
  + libexpat                2.6.4  he0c23c2_0             conda-forge     139kB
  + libffi                  3.4.2  h8ffe710_5             conda-forge      42kB
  + libhwloc               2.11.2  default_hc8275d1_1000  conda-forge       2MB
  + libiconv                 1.17  hcfcfb64_2             conda-forge     636kB
  + liblapack               3.9.0  8_mkl                  conda-forge       4MB
  + libsqlite              3.47.0  h2466b09_1             conda-forge     892kB
  + libxml2                2.13.4  h442d1da_2             conda-forge       2MB
  + libzlib                 1.3.1  h2466b09_2             conda-forge      55kB
  + mkl                    2020.4  hb70f87d_311           conda-forge     181MB
  + numpy                   2.1.3  py312h49bc9c5_0        conda-forge       7MB
  + openssl                 3.3.2  h2466b09_0             conda-forge       8MB
  + pip                    24.3.1  pyh8b19718_0           conda-forge       1MB
  + pthreads-win32          2.9.1  h2466b09_4             conda-forge     266kB
  + python                 3.12.7  hce54a09_0_cpython     conda-forge      16MB
  + python_abi               3.12  5_cp312                conda-forge       7kB
  + rowan                   1.3.2  pyhd8ed1ab_0           conda-forge      30kB
  + scipy                  1.14.1  py312h337df96_1        conda-forge      16MB
  + setuptools             75.3.0  pyhd8ed1ab_0           conda-forge     780kB
  + tbb                  2022.0.0  h62715c5_0             conda-forge     154kB
  + tk                     8.6.13  h5226925_1             conda-forge       4MB
  + tzdata                  2024b  hc8b5060_0             conda-forge     122kB
  + ucrt             10.0.22621.0  h57928b3_1             conda-forge     560kB
  + vc                       14.3  h8a93ad2_22            conda-forge      17kB
  + vc14_runtime      14.40.33810  hcc2c482_22            conda-forge     751kB
  + vs2015_runtime    14.40.33810  h3bf8584_22            conda-forge      17kB
  + wheel                  0.45.0  pyhd8ed1ab_0           conda-forge      63kB
  + xz                      5.2.6  h8d14728_0             conda-forge     218kB

  Summary:

  Install: 33 packages

  Total download: 257MB

---------------------------------------------------------------------------------

Confirm changes: [Y/n] n
a-ws-m commented 2 weeks ago

Thank you, that fixed it for me! I didn't realise micromamba didn't come with those channel priorities as default.