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

标签 python ssl-certificate failed-installation

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

最佳答案

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

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

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

就我而言,我需要运行命令 sudo/usr/bin/python2.7 fslinstaller.py 并且安装程序有效

关于python - 尝试安装程序时,python 上的 ssl 证书验证失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50174864/

相关文章:

使用 digicert 在服务器中更新证书后出现 Android ssl 证书错误

debugging - PostgreSQL 9.2 EnterpriseDB for Win7 x-64 是否没有调试器插件

installation - 无法安装特定的 JAX jaxlib GPU 版本

python - 尽管是一个多行字符串,为什么这个 ASCII 艺术字不打印在多行上?

python - PIP 格式的差异

具有 1 路和 2 路 SSL 的 Tomcat

android - 使用 GreenDao 时 INSTALL_FAILED_DEXOPT

python - 如何在 lmfit 最小二乘最小化中包括我的数据的错误,以及 lmfit 中 conf_interval2d 函数的错误是什么?

python - Pandas:即使日期已经在月末,也能正确获取业务月末日期

ssl - Google 互联网授权机构未显示为 Google.com 的证书颁发者