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

2024-04-28 07:07:36 发布

您现在位置:Python中文网/ 问答频道 /正文

我几乎没有编码经验,正试图在我的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$

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

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

^{pr2}$

Tags: ofthe代码defaultforyourisdownloads
1条回答
网友
1楼 · 发布于 2024-04-28 07:07:36

不确定您是否仍有问题,但我认为您的问题可能与this one相同

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

如果这不起作用,可能是到python的完整路径是错误的。您可以使用which pythonwhich python2或{}找到正确的一个。其中一个可能会有用

在我的例子中,我需要运行命令sudo /usr/bin/python2.7 fslinstaller.py,安装程序正常工作

相关问题 更多 >