當我試圖在我的mac上安裝Ta-lib作爲全局包時,我收到gcc錯誤。安裝Ta-lib創建gcc錯誤任何幫助讚賞
我得到以下錯誤:
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
我不知道我理解這是什麼意思? pip install Ta-lib軟件包缺少一個文件?這將是有道理的,但它安裝我的Ubuntu服務器罰款,只是與我的Mac問題。 Ubuntu也使用相同版本的Anaconda運行Python。
我的GCC以下版本:
➜ ~ which 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
下面
我的Python安裝信息:
➜ ~ which python
/anaconda/bin/python
➜ ~ python --version
Python 3.6.1 :: Anaconda custom (x86_64)
我真的喜歡的Ta-lib的安裝爲我最終使用它與大多數的全球康達包裝我的筆記本是非常特別的工作。
小更新這似乎是一個Python版本問題。安裝到Python27x conda env可以正常工作。該軟件包應該支持Python3 ... –