python - Installing Ta-lib creates gcc error any assistance appreciated -


i getting gcc error when trying install ta-lib global package on mac.

i error below:

   gcc -wno-unused-result -wsign-compare -wunreachable-code -dndebug -g -fwrapv -o3 -wall -wstrict-prototypes -i//anaconda/include -arch x86_64 -i//anaconda/include -arch x86_64 -i//anaconda/lib/python3.6/site-packages/numpy/core/include -i/usr/include -i/usr/local/include -i/opt/include -i/opt/local/include -i//anaconda/include/python3.6m -c talib/common.c -o build/temp.macosx-10.7-x86_64-3.6/talib/common.o     talib/common.c:242:10: fatal error: 'ta-lib/ta_defs.h' file not found     #include "ta-lib/ta_defs.h"              ^     1 error generated.     error: command 'gcc' failed exit status 1 

i not sure understand means? pip install ta-lib package missing file? make sense installs fine ubuntu server, having issues mac. ubuntu running python anaconda same version.

my gcc version below:

➜  ~ gcc /usr/bin/gcc ➜  ~ gcc --version configured with: --prefix=/applications/xcode.app/contents/developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 apple llvm version 8.0.0 (clang-800.0.42.1) target: x86_64-apple-darwin16.4.0 thread model: posix installeddir: /applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin 

my python installation information below:

➜  ~ python /anaconda/bin/python ➜  ~ python --version python 3.6.1 :: anaconda custom (x86_64) 

i prefer ta-lib installed global conda package end using of notebooks pretty ad-hoc work.

yesterday took me time solve problem still couldn't make it. succeeded install ta-lib! below solution.

first run 'brew install ta-lib' in mac terminal. open pycharm, file->default settings->project interpreter->choose python 3.6(my python version)->'+' , input 'ta-lib' -> install->finish!

before solve problem, have @ ta-lib folder downloaded internet. it's said in readme.md that

"sometimes installation produce build errors this:

func.c:256:28: fatal error: ta-lib/ta_libc.h: no such file or directory compilation terminated.

this typically means can't find underlying ta-lib library, dependency needs installed."

and find

"### dependencies

to use ta-lib python, need have ta-lib installed:

mac os x

$ brew install ta-lib

windows

download ta-lib-0.4.0-msvc.zip , unzip c:\ta-lib " therefore problem solved. hope you.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -