Ta-lib not getting installed in Mac for Anaconda

Hello,



Anybody knows how to install Ta-lib in Mac for Anaconda?



While trying to pip install via terminal, it is throwing below error:

"command 'gcc' failed with exit status 1"

I was getting the same error in Linux , you should try to install via GitHub instruction.

Thanks but even there the solution that i could find was to install throw brew, which I am not comfortable with as it involves altering the permission on certian system folders.



For instance, check out the below github link:



https://mrjbq7.github.io/ta-lib/install.html

The steps are:



In a Terminal window: (Install the OS dependencies)



brew install ta-lib



And then install TaLib:



pip install TA-Lib



Now, it’s important to assure that Spyder is working with the environment where you have installed the library.



So, launch Spyder from the same terminal:



spyder



I hope this help.

I came across the 'brew install' solution too but while installing Homebrew before running this comand, Homebrew asked for changing the permissions on certain system folders.



Might sound naive but that made me a little apprehensive about compromising my system's security.



Thanks anyway for suggesting.



Any other solution is still welcome!

You can try conda install. 



Link: https://anaconda.org/Quantopian/ta-lib



Hope it helps.

I'm having the same problem.



I've just done as Vibhu said, but I still get this message:

 

    1 error generated.

    error: command 'gcc' failed with exit status 1

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

ERROR: Command "//anaconda3/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/cx/vnf3ldvd1nb_78ls_7ggr8fc0000gn/T/pip-install-gr_wfe0h/TA-Lib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/cx/vnf3ldvd1nb_78ls_7ggr8fc0000gn/T/pip-record-kg4fez4o/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/cx/vnf3ldvd1nb_78ls_7ggr8fc0000gn/T/pip-install-gr_wfe0h/TA-Lib/

I also tried the conda install and get an error message.

Any help would be appreciated.

I found the link for the same error. Try this:  https://stackoverflow.com/questions/44757678/python-ta-lib-install-error-how-solve-it