虽然存在所需的库,但我无法安装python包

时间:2014-05-09 06:28:40

标签: python

我正在尝试安装Python包,但是我遇到了依赖性错误,但我确信我已经满足了这个要求。

它说它找不到libdickinson.so,但是这个库已经安装(系统范围内),其文件在/user/local/lib/。我做错了什么?

这是我的控制台输出:

(iwidget)chris@mint-desktop ~ $ pip install pthelma
Downloading/unpacking pthelma
  Downloading pthelma-0.7.2.tar.gz (50kB): 50kB downloaded
  Running setup.py egg_info for package pthelma
    libdickinson.so: cannot open shared object file: No such file or directory

    Please make sure you have installed dickinson
    (see http://dickinson.readthedocs.org/).
    Complete output from command python setup.py egg_info:
    libdickinson.so: cannot open shared object file: No such file or directory



Please make sure you have installed dickinson

(see http://dickinson.readthedocs.org/).

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/chris/.virtualenvs/iwidget/build/pthelma
Storing complete log in /home/chris/.pip/pip.log
(iwidget)chris@mint-desktop ~ $ ls /usr/local/lib/
libdickinson.a         libdickinson.la        libdickinson.so        libdickinson.so.0      libdickinson.so.0.0.0  python2.7/             python3.2/             site_ruby/
(iwidget)chris@mint-desktop ~ $ 

2 个答案:

答案 0 :(得分:1)

尝试自己构建并从GIT仓库安装:

git clone https://github.com/openmeteo/pthelma.git

另外,尝试以超级用户(pip)运行它。

sudo pip install pthelma

看起来它看不到libdickinson.so文件,但是如果你确信它已经正确安装和设置,你可以像我说的那样尝试克隆源并以这种方式构建它。

答案 1 :(得分:1)

也以超级用户身份尝试上述命令:

sudo pip install pthelma

然后浏览下面给出的主题:

Why can't Python find shared objects that are in directories in sys.path?