我试图安装pylibtiff(在Enthought Canopy下),并收到以下跟踪: libtiff':
中不存在的路径'bitarray-0.3.5-numpy/bitarray'
Warning: Assuming default configuration (bitarray-0.3.5-numpy/bitarray/{setup_bitarray,setup}.py was not found)Traceback (most recent call last):
File "setup.py", line 96, in <module>
configuration = configuration,
File "/home/joe/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/distutils/core.py", line 135, in setup
config = configuration()
File "setup.py", line 66, in configuration
config.add_subpackage('libtiff')
File "/home/joe/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 966, in add_subpackage
caller_level = 2)
File "/home/joe/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 935, in get_subpackage
caller_level = caller_level + 1)
File "/home/joe/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 872, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "libtiff/setup.py", line 18, in configuration
config.add_subpackage('bitarray', bitarray_path)
File "/home/joe/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 966, in add_subpackage
caller_level = 2)
File "/home/joe/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 928, in get_subpackage
caller_level = caller_level+1)
File "/home/joe/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 707, in __init__
raise ValueError("%r is not a directory" % (package_path,))
ValueError: 'bitarray-0.3.5-numpy/bitarray' is not a directory
这是什么?这是什么意思?
编辑:从SVN中检出并安装最新版本,然后在Ubuntu 14.04软件中心查看。在执行from libtiff import *
时,我获得了ImportError: No module named libtiff
。似乎在启动Canopy Python时,版本是2.7.6。使用locate libtiff.so显示它位于〜/ Python2.7.8目录中。版本不匹配吗?