Unable to install ta-lib on macbook

Hello,



I am running python 3.8 currently. The instructions to change python version, conda install python=3.6.8, did not work. The command runs but when i check the python version afterwards with python -v, it says 3.8. I have tried it multiple times but my python version could not be changed.



when i tried installing ta-lib library from quantopian with the command conda install -c quantopian ta-lib, it says my version should be < 3.6.



I have also tried creating a temporary conda environment with version 3.6.8 but when run !pip install talib in Spyder from anaconda, it says the wheel is broken or something along those lines, so I can't install ta-lib from Spyder as well.



Please help !!!

Hi Sean,



To make a new environment with the correct python version you can run the following command:

conda create -n myenv python=3.6

But before you do that, you can try our guide to install ta-lib in this blog post!



Hope this helps!

Let me know if that works out for you!

Yes, it worked out. Thank you