由于ubuntu12.04弃用了ssl2.0,所以在安装python2.6.6时会提示failed to install _ssl,因此需要对python2.6.6的安装文件做部分修改,将本文件解压,文件夹内容直接替换python2.6.6的安装文件下,在编译python2.6.6即可解决ssl错误,请参考http://blog.csdn.net/ranky2009/article/details/41725459
工作过程中撰写的部署文档,注释,文字说明详尽。 1.关于注册失败错误,查看log: ============= INFO 2017‐09‐21 10:52:33,435 security.py:178 ‐ Server certificate not exists, downloading INFO 2017‐09‐21 10:52:33,435 security.py:191 ‐ Downloading server cert from https://ambari‐test1.com:94
安装配置nacl sdk环境时,命令naclsdk update,报错third_party.fancy_urllib.InvalidCertificateException: Host storage.googleapis.com returned an invalid certificate ([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)): To learn more, see http:/
软件依赖:gcc,g++,make 配置本地yum源,安装好C,c++编译器
tar -xvzf python安装包
cd python36
mkdir /usr/python36
./configure --prefix=/usr/python36
make
make install
期间报错,由于之前没装gcc导致make失败,后面再Make还是报错,删除解压目录后重新解压再次安装即可解决
创建软连接:
ln -s /usr/python36/bin/python3.6 /usr/bin/
安装配置nacl sdk环境时,命令naclsdk update,报错third_party.fancy_urllib.InvalidCertificateException: Host storage.googleapis.com returned an invalid certificate ([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)):
To learn more, see http://
公司运维提供的服务器是centos6.8,打算在上面装python3.7,结果费尽周折,按照网上的步骤python3.7能成功安装,但是import ssl却报找不到_ssl模块的错误:
import _ssl # if we can't import it, let the error propagate
ImportError: No module named _ssl
在网上搜了各种方法,有说修改python3.7安装文件中的Setup.dist,将SSL部分注释掉,但自己注
配置nacl sdk环境时,命令naclsdk list / update报错third_party.fancy_urllib.InvalidCertificateException: Host storage.googleapis.com returned an invalid certificate ([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)):
To learn more, see htt
python安装完毕后,提示找不到ssl模块:
[wwwpythontab.com ~]$ python
Python 2.7.15 (default, Oct 23 2018, 18:08:43)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-23)] on linux2
Type help, copyright, credits or license for more information.
>>> import ssl
Traceback (m