我正在为 Python3 安装 Kyotocabinet。我运行的命令是:
wget http://fallabs.com/kyotocabinet/pkg/kyotocabinet-1.2.76.tar.gz
tar xzvf kyotocabinet-1.2.76.tar.gz
cd kyotocabinet-1.2.76
./configure && make && make install # takes a couple of minutes
紧随其后的是:
pip3 install kyotocabinet
它是成功的。但是,运行一个脚本,其中包括from kyotocabinet import *
:
aviral@sc:~/dev/data-file-handling$ python3 kyoto_learning.py
Traceback(最近一次通话最后一次):文件“kyoto_learning.py”,第 1 行,在
from kyotocabinet import * ImportError: libkyotocabinet.so.16: cannot open shared object file: No such file or directory