尝试安装程序时,ssl证书验证在python上失败

问题描述 投票:1回答:1

我几乎没有编码经验,我正在尝试在我的mac(osX Yosemite)上安装一些软件。该软件采用FSL软件包,可实现神经解剖学的可视化。有关安装它的说明,请访问https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/FslInstallation/MacOsX每当我尝试安装它时,我都会得到代码

olegs-MacBook-Air-4:Downloads Sonya$ cd ~/Downloads
olegs-MacBook-Air-4:Downloads Sonya$ python fslinstaller.py
--- FSL Installer - Version 3.0.11 ---
[Warning] Some operations of the installer require administative rights,
    for example installing into the default folder of /usr/local.
    If your account is an 'Administrator' (you have 'sudo' rights)
    then you will be prompted for your administrator password
    when necessary.
When asked a question, the default answer is given in square brackets.
Hit the Enter key to accept this default answer.

[FAILED] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)
olegs-MacBook-Air-4:Downloads Sonya$

真的不知道该怎么做,任何帮助将不胜感激

更新我刚刚尝试了同样的命令,现在已经得到了代码

olegs-MacBook-Air-4:~ Sonya$ cd ~/Downloads
olegs-MacBook-Air-4:Downloads Sonya$ python fslinstaller.py
--- FSL Installer - Version 3.0.11 ---
[Warning] Some operations of the installer require administative rights,
    for example installing into the default folder of /usr/local.
    If your account is an 'Administrator' (you have 'sudo' rights)
    then you will be prompted for your administrator password
    when necessary.
When asked a question, the default answer is given in square brackets.
Hit the Enter key to accept this default answer.


[FAILED] nodename nor servname provided, or not known
python ssl-certificate failed-installation
1个回答
1
投票

不确定你是否还有问题,但我认为你的问题可能和this one一样

解决方案是将python fslinstaller.py改为/usr/bin/python fslinstaller.py

如果这不起作用,可能是你的python的完整路径是错误的。你可以找到合适的which pythonwhich python2which python2.7。其中一个可能会奏效

在我的情况下,我需要运行命令sudo /usr/bin/python2.7 fslinstaller.py,安装程序工作

© www.soinside.com 2019 - 2024. All rights reserved.