python3.6 SSL module is not available】的更多相关文章

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.Collecting requests Could not fetch URL https://pypi.python.org/simple/requests/: There was a problem confirming the ssl certificate: Can't conne…
如果在运行爬虫时报此错:requests.exceptions.SSLError: HTTPSConnectionPool(host='www.baidu.com', port=443): Max retries exceeded with url: / (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",))并且在python命令行中引用import ssl…
环境:CentOS release 6.8 (Final) # 直接编译python3.7在使用pip3安装依赖的时候报错: Can't connect to HTTPS URL because the SSL module is not available. 解决方法: .编译安装OpenSSL 1.0.2j版本并重新配置环境变量 下载OpenSSL源码包: wget http://www.openssl.org/source/openssl-1.0.2j.tar.gz 解压缩,编译安装: t…
1.下载安装包 https://www.python.org/ftp/python/ 该目录下选择所需要的版本进行下载.解压. wget https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz .tgz 2.二进制文件安装 1.创建存放目录 mkdir /usr/local/python3 2.运行脚本configure config是一个shell脚本,根据平台的特性生成Makefile文件,为下一步的编译做准备. 可以通过在 conf…
在使用pip安装pymongo的过程中报错,提示如下: $ pip3 install pymongo pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting pymongo Could not fetch URL https://pypi.python.org/simple/pymongo/: There was a p…
window7系统: 今天刚安装的anaconda(开源的Python包管理器),把原来的python3和python2都给卸载了,结果运行爬虫程序的时候报错: Caused by SSLError("Can’t connect to HTTPS URL because the SSL module is not available) 原因是anaconda没有安装好,环境变量没有配置成功,需要添加三条环境变量: E:\anaconda; E:\anaconda\Scripts; E:\anac…
今天用pip3安装第三方库的时候报了这样一个错: Can't connect to HTTPS URL because the SSL module is not available. - skipping [root@python_test ~]# rpm -qa openssl # 检查了一下是安装了openssl的 openssl-1.0.1e-57.el6.x86_64 于是我将原先编译安装好的python目录删除后,重新编译安装: [root@python_test tools]# t…
今天在测试,阿里云服务器发邮件时,发现使用默认的25端口,邮件无法正常发送,查了相关的资料,才知道,大部分的云服务器都会禁用25端口,所以才想到使用ssl 发送. 下面为具体的python3 使用ssl端口发邮件配置,邮箱服务器为163的企业邮箱 #/usr/bin/env python #-*- coding:utf-8 -*- from email.mime.text import MIMEText from email.header import Header import smtplib…
centos6.8编译安装python2.7之后,使用pip报错:pip cannot confirm SSL certificate: SSL module is not available 解决方法: 安装openssl-devel 后重新编译安装python ref: https://stackoverflow.com/questions/25981703/pip-install-fails-with-connection-error-ssl-certificate-verify-fail…
# 背景 安装pip后发现执行pip install pytest,提示下面错误 pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. # 解决方法 查询了资料,大概意思是,新版的pip默认要使用SSL,可以通过设置修改,但木有发现pip.conf文件在哪里,囧rz,后续再研究下 但找到另外一个解决方法 先安装openssl-dev,然后重…