没有模块_sha256安装cellProfiler

jo0*_*din 2 python sha256 hashlib

我正在尝试在linux上为开发人员安装cellprofiler,并获得一个名为"_sha256"的"无模块"错误.我在几个博客上找到了解决方案,但没有任何效果,有人可以帮我解决这个问题吗?

这是我的配置:

Python 2.7.3 (default, Aug  1 2012, 05:16:07) 
[GCC 4.6.3] on linux2
Run Code Online (Sandbox Code Playgroud)

linux:

uname -m
i686

Distributor ID: Ubuntu
Description:    Ubuntu 12.04.2 LTS
Release:        12.04
Codename:       precise
Run Code Online (Sandbox Code Playgroud)

这是我得到的错误:

local@pc-ellenberg23:~/Softwares/cellProfiler/CellProfiler$ make -f Makefile.CP2 PREFIX="${HOME}/usr/cp2"
All pre-checks executed successfully.
export PATH="/home/local/usr/cp2/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-7-openjdk-i386/bin:/usr/lib/jvm/java-7-openjdk-i386/bin:/usr/lib/jvm/java-7-openjdk-i386/bin" && \
                    export LD_LIBRARY_PATH="/home/local/usr/cp2/lib:${LD_LIBRARY_PATH}" && \
                    sh setuptools-0.6c11-py2.6.egg --prefix="/home/local/usr/cp2"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/local/Softwares/cellProfiler/CellProfiler/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 21, in <module>
  File "/home/local/Softwares/cellProfiler/CellProfiler/setuptools-0.6c11-py2.6.egg/setuptools/package_index.py", line 2, in <module>
  File "/home/local/usr/cp2/lib/python2.6/urllib2.py", line 93, in <module>
    import hashlib
  File "/home/local/usr/cp2/lib/python2.6/hashlib.py", line 138, in <module>
    sha224 = __get_builtin_constructor('sha224')
  File "/home/local/usr/cp2/lib/python2.6/hashlib.py", line 66, in __get_builtin_constructor
    import _sha256
ImportError: No module named _sha256
make: *** [/home/local/usr/cp2/bin/easy_install] Error 1
Run Code Online (Sandbox Code Playgroud)

抱歉,如果错误似乎很愚蠢,我是新的处理Linux安装上的错误消息

非常感谢你

Mar*_*ers 5

您缺少hashlib模块的库依赖项.

在Ubuntu上,您需要安装libsasl2-devlibssl-dev包,然后重新编译(make -f Makefile.CP2 clean; make -f Makefile.CP2 PREFIX="${HOME}/usr/cp2" )CellProfiler依赖项.