Error in creating Quantra environment

Hi i am getting the following error message when i try to rund the command "conda env create -f Learn algorithmic trading from top institutions and experts | Quantra by QuantInsti; to create my environment. 

I have installed Anaconda on a M2 mac - not sure what else needs to be installed and from where (I am beginner with limited knowledge of coding)



Error message below:

(base) hardik@Hardiks-Mac-mini ~ % conda env create -f https://quantra.quantinsti.com/downloads/general/environment.yml

Channels:

  • conda-forge
  • defaults

    Platform: osx-arm64

    Collecting package metadata (repodata.json): done

    Solving environment: failed

    Channels:
  • conda-forge
  • defaults

    Platform: osx-arm64

    Collecting package metadata (repodata.json): done

    Solving environment: failed



    LibMambaUnsatisfiableError: Encountered problems while solving:

      - package ta-lib-0.4.19-py39h8a366b7_4 requires numpy >=1.21.6,<2.0a0, but none of the providers can be installed



    Could not solve for environment specs

    The following packages are incompatible

    ├─ numpy 1.19.5 is installable with the potential options

    │  ├─ numpy [1.19.5|1.21.6|…|1.24.4] would require

    │  │  └─ python_abi 3.8.* _cp38, which can be installed;

    │  ├─ numpy [1.19.5|1.21.6|…|1.24.3] would require

    │  │  └─ python >=3.8,<3.9.0a0 , which can be installed;

    │  └─ numpy 1.19.5, which can be installed;

    ├─ python 3.9.5 is not installable because it requires

    │  └─ python_abi 3.9.
    _cp39, which conflicts with any installable versions previously reported;

    └─ ta-lib 0.4.19 is installable with the potential options

       ├─ ta-lib 0.4.19 would require

       │  └─ numpy >=1.21.6,<2.0a0 with the potential options

       │     ├─ numpy [1.21.6|1.22.0|…|1.26.4] would require

       │     │  └─ python_abi 3.10.
    _cp310, which can be installed;

       │     ├─ numpy [1.19.5|1.21.6|…|1.24.4], which can be installed (as previously explained);

       │     ├─ numpy [1.21.6|1.22.0|…|1.26.4] conflicts with any installable versions previously reported;

       │     ├─ numpy [1.23.4|1.23.5|…|1.26.4] would require

       │     │  └─ python_abi 3.11.
    _cp311, which can be installed;

       │     ├─ numpy [1.26.0|1.26.2|1.26.3|1.26.4] would require

       │     │  └─ python_abi 3.12.
    _cp312, which can be installed;

       │     ├─ numpy [1.21.6|1.22.3|…|1.26.4] would require

       │     │  └─ python >=3.10,<3.11.0a0 , which can be installed;

       │     ├─ numpy [1.19.5|1.21.6|…|1.24.3], which can be installed (as previously explained);

       │     ├─ numpy [1.22.3|1.23.5|…|1.26.4] would require

       │     │  └─ python >=3.11,<3.12.0a0 , which can be installed;

       │     └─ numpy [1.26.0|1.26.2|1.26.3|1.26.4] would require

       │        └─ python >=3.12,<3.13.0a0 , which can be installed;

       ├─ ta-lib 0.4.19 would require

       │  └─ python_abi 3.10.
    _cp310, which can be installed;

       └─ ta-lib 0.4.19 would require

          └─ python_abi 3.8.
    *_cp38, which can be installed.

Hi Hardik,



The error might be due to some conflicting library versions on your system. To resolve this, I would suggest you remove Anaconda's current version (basically, do a clean uninstall) and install the following version. 



Anaconda3-2022.05-MacOSX-x86_64.pkg



After this, you can retry creating the environment, and it should work. Please let us know if you still face any issues.