Installation Issue of Python Package using CondaPkg.jl

Hello,

I am recently using CondaPkg.jl to manage a conda environment in a Julia Package. However, when I tried CondaPkg.add_pip(“fairchem-core”; version=“==2.6.0”) to install the latest Fairchem package, it failed and showed the error:

Error: 
  × failed to solve the pypi requirements of 'default' 'osx-arm64'
  ├─▶ failed to resolve pypi dependencies
  ╰─▶ Because fairchem-core==2.6.0 depends on numpy>=2.0,<2.3 and numpy==2.3.3, we can conclude
      that fairchem-core==2.6.0 cannot be used.
      And because you require fairchem-core==2.6.0, we can conclude that your requirements are
      unsatisfiable.

I also tried CondaPkg.add_pip(“fairchem-core”), though it installed a very old version (v1.1.0), which is not useful.

I would appreciate it if you could give me any suggestions.

You can first try to manually install an older numpy

The error message is saying that fairchem-core 2.6.0 is not compatible with numpy >=2.3, and I’m guessing you also have a dependency on numpy==2.3.3.

You need to lower your bounds. I’d generally recommend not using exact versions but use ranges instead, such as

CondaPkg.add("numpy", version=">=2.2,<3")
CondaPkg.add("fairchem-core", version=">=2.6,<3")