SimpleITK python 2.7.12安装问题

时间:2017-07-18 19:41:34

标签: python python-2.7 installation simpleitk

所以......我试图在Python 2.7.12上安装SimpleITK,我尝试了几种方法,没有一种方法能给我带来满意的结果。

1)只需使用

pip install SimpleITK

我得到"没有找到SimpleITK" (我的点数版本是9.0.1)

2)tar文件(此处可用:https://sourceforge.net/projects/simpleitk/files/SimpleITK/1.0.0/Python/):当我运行命令

python setup.py install

我明白了:

Download error on https://pypi.python.org/simple/scikit-build/: [SSL: 
CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some 
packages may not be found!
Couldn't find index page for 'scikit-build' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: [SSL: 
CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some 
packages may not be found!
No local packages or download links found for scikit-build>=0.5
Traceback (most recent call last):
 File "setup.py", line 50, in <module>
 zip_safe=False
 File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
 File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 269, in 
__init__
self.fetch_build_eggs(attrs['setup_requires'])
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 313, in 
fetch_build_eggs
replace_conflicting=True,
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 
826, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 
1092, in best_match
return self.obtain(req, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1 
104, in obtain
return installer(requirement)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 380, in 
fetch_build_egg
return cmd.easy_install(req)
File "/usr/lib/python2.7/dist-
packages/setuptools/command/easy_install.py", 
    line 657, in easy_install
   raise DistutilsError(msg)
 distutils.errors.DistutilsError: Could not find suitable distribution for 
 Requirement.parse('scikit-build>=0.5')

我不明白缺少什么以及为什么我不能使用实用的方式(使用pip)...... =(我也没有尝试过Python 3(但我宁愿使用Python 2.7,因为我更熟悉它。)

提前谢谢!

编辑:最后工作!

此处:sudo easy_install for SimpleITK not that easy

0 个答案:

没有答案