Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22240

Installing Ta-lib creates gcc error

$
0
0

I am getting gcc error when trying to install Ta-lib as a global package on my mac.

I get an 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 with exit status 1

I am not sure I understand what this means? pip install Ta-lib package is missing a file? It would make sense but it installs fine for my Ubuntu server, just having issues with my mac. Ubuntu is also running Python with Anaconda with same version.

My gcc version below:

➜  ~ which gcc/usr/bin/gcc➜  ~ gcc --versionConfigured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1Apple LLVM version 8.0.0 (clang-800.0.42.1)Target: x86_64-apple-darwin16.4.0Thread model: posixInstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

My Python installation information below:

➜  ~ which python/anaconda/bin/python➜  ~ python --versionPython 3.6.1 :: Anaconda custom (x86_64)

I would actually prefer Ta-lib installed as global conda package as I end up using it with most of my notebooks that are pretty ad-hoc work.


Viewing all articles
Browse latest Browse all 22240

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>