Unable to setup quantra_py env on osx-arm64

I am getting the following error while setting up the quantra_py env on my mac m1. Please help…



(base) ➜  Getting-Started-with-Algorithmic-Trading 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 Anshuman,



This could happen due to some conflicts in the Python library versions on your system. To resolve this, I suggest you remove Anaconda's current version 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.

 

Thanks Akshya, this worked