我在编程时总是一个菜鸟,所以请光临我!我对我的研究进行了一些图像分析,它涉及使用CellTool(http://pantheon.yale.edu/~zp2/Celltool/),Python和numpy。我在OS X 10.8.3上。在我丢失的旧笔记本电脑上,我能够很好地运行我的命令,但是我得到了一个新的命令并且事情进展不顺利!
我相信我正确安装了CellTool和numpy,而我只是使用Python 2.7.2这是Mac上的标准。但是当我尝试运行这个python脚本“calculate_distances.py”命令时,我收到了这个错误:
Yuxins-MacBook-Pro:Modified_Contours yuxinsun$ python calculate_distances.py
Traceback (most recent call last):
File "calculate_distances.py", line 24, in <module>
normals = contours[n-1].inward_normals()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/celltool/contour/contour_class.py", line 384, in inward_normals
import celltool.numerics.fitpack as fitpack
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/celltool/numerics/fitpack/__init__.py", line 1, in <module>
from fitpack import *
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/celltool/numerics/fitpack/fitpack.py", line 34, in <module>
import _fitpack
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/celltool/numerics/fitpack/_fitpack.so, 2): Library not loaded: /usr/local/lib/libgfortran.2.dylib
Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/celltool/numerics/fitpack/_fitpack.so
Reason: image not found
我不知道它有什么意思......我只需要运行这个python脚本并获取它吐出的文件。
我只是错过了“fitpack”,不管是什么?如果是这样,我该如何安装呢?或者我该怎么做才能解决这个问题。
谢谢你的帮助!!!
答案 0 :(得分:0)
您需要确保按安装要求安装了这些:
If one of the above binary installers did not suit your needs,
please install Celltool from the source code.
This depends on only three things:
1.Python (version 2.3 or later).
2. NumPy 1.0.4 or later.
3. Working C/C++ and Fortran compilers.
看起来好像没有安装Fortran编译器库。