试图安装bloomberg python api blpapi3.5.5会导致以下错误:
blpapi/internals_wrap.cxx:3110:26:致命错误: blpapi_types.h:没有终止这样的文件或目录编译。
完整安装日志:
root@najeeb:/home/najeeb/Desktop/pyqt1/blpapi-3.5.5# python setup.py install
running install
running build
running build_py
running build_ext
building 'blpapi._internals' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes - fPIC -I/home/najeeb/Desktop/pyqt1/blpapi-3.5.5/include -I/usr/include/python2.7 -c blpapi/internals_wrap.cxx -o build/temp.linux-i686-2.7/blpapi/internals_wrap.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
blpapi/internals_wrap.cxx:3110:26: fatal error: blpapi_types.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1我怎么才能解决这个问题?
发布于 2017-05-01 08:44:23
如果您是MacOS用户。尝试查看解决方案:Link。
我想你忘了加上下面的台词了:
# set environment variable
export BLPAPI_ROOT=/some/directory/blpapi_cpp_3.8.1.1/
export DYLD_LIBRARY_PATH=/Users/sampathkumarm/blpapi_cpp_3.8.1.1/Darwin/https://stackoverflow.com/questions/25951940
复制相似问题