/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:168:61: fatal error: limits.h: 没有那个文件或目录 解决方法

$ pip install TA-Lib
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/zhangshoug/anaconda2/envs/rqalpha/lib/python3.6/site-packages/numpy/core/include -I/usr/include -I/usr/local/include -I/opt/include -I/opt/local/include -I/home/zhangshoug/anaconda2/envs/rqalpha/include/python3.6m -c talib/_ta_lib.c -o build/temp.linux-x86_64-3.6/talib/_ta_lib.o
  In file included from /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h:7:0,
                   from /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:34,
                   from /home/zhangshoug/anaconda2/envs/rqalpha/include/python3.6m/Python.h:11,
                   from talib/_ta_lib.c:4:
  /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:168:61: fatal error: limits.h: 没有那个文件或目录
  compilation terminated.
  error: command 'gcc' failed with exit status 1
 
  ----------------------------------------
  Failed building wheel for TA-Lib
  Running setup.py clean for TA-Lib

Failed to build TA-Lib

pip install bcolz

 gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -DHAVE_ZSTD=1 -Ibcolz -Ic-blosc/blosc -Ic-blosc/internal-complibs/zlib-1.2.8 -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/lz4-1.8.1.2 -Ic-blosc/internal-complibs/zstd-1.3.4 -Ic-blosc/internal-complibs/zstd-1.3.4/decompress -Ic-blosc/internal-complibs/zstd-1.3.4/compress -Ic-blosc/internal-complibs/zstd-1.3.4/deprecated -Ic-blosc/internal-complibs/zstd-1.3.4/legacy -Ic-blosc/internal-complibs/zstd-1.3.4/common -Ic-blosc/internal-complibs/zstd-1.3.4/dll -Ic-blosc/internal-complibs/zstd-1.3.4/dictBuilder -I/home/zhangshoug/anaconda2/envs/rqalpha/lib/python3.6/site-packages/numpy/core/include -I/home/zhangshoug/anaconda2/envs/rqalpha/include/python3.6m -c bcolz/carray_ext.c -o build/temp.linux-x86_64-3.6/bcolz/carray_ext.o -DSHUFFLE_SSE2_ENABLED -msse2 -DSHUFFLE_AVX2_ENABLED -mavx2
    In file included from /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h:7:0,
                     from /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:34,
                     from /home/zhangshoug/anaconda2/envs/rqalpha/include/python3.6m/Python.h:11,
                     from bcolz/carray_ext.c:4:
    /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:168:61: fatal error: limits.h: 没有那个文件或目录
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    
    ----------------------------------------
Command "/home/zhangshoug/anaconda2/envs/rqalpha/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-ffaet1qh/bcolz/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-tzl_9yme/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-ffaet1qh/bcolz/

这个错误解决方法:sudo apt-get install gcc-multilib

猜你喜欢

转载自blog.csdn.net/zhangshoug/article/details/80461440
今日推荐