pip install bcolz
老是出错,去Blosc/bcolz上找到Compiling with an installed Blosc library (recommended)的办法。
- 首先从Blosc/c-blosc/releases下载源码
- tar.gz解压命令
tar -zxvf
- 一切按
README.md
的操作,例如,输入cmake -DCMAKE_INSTALL_PREFIX=/usr/local
- 遇到
No CMAKE_CXX_COMPILER could be found.
的错误,需要执行sudo apt-get install g++
- 若遇到
Python 3.6.1 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:09:58)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import bcolz
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/mnt/d/code/anaconda3/lib/python3.6/site-packages/bcolz/__init__.py", line 76, in <module>
from bcolz.carray_ext import (
ImportError: /mnt/d/code/anaconda3/lib/python3.6/site-packages/bcolz/carray_ext.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm
>>>
执行conda install libgcc