pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

# 背景

安装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,然后重新编译安装,只是在编译的过程中加入 --enable-optimizations

具体如下:

sudo yum install openssl-dev

然后:
./configure --enable-optimizations
make && make install

这样就可以了的

实际上解决方法挺多的

1. 修改pip.conf

2. 修改安装目录下module下的setup文件

3. 安装openssl后,编译时加上--enable-optimizations

原文地址:https://www.cnblogs.com/jwentest/p/8485468.html

时间: 2024-08-28 16:58:27

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.的相关文章

pip is configured with locations that require TLS/SSL问题

linux 6 安装python3.7后,使用pip命令出现问题,提示找不到ssl模块,出现错误如下 # pip listPackage Version---------- -------pip 10.0.1 setuptools 39.0.1 pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.Could not fetch URL ht

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not 解决方法

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available 解决方法 问题 今天在安装 Pygame 的时候,发现照着之前自己写的教程出现了问题. pip is configured with locations that require TLS/SSL, however the ssl module in Python is not availa

pip 出现locations that require TLS/SSL

最近在redhat 7上安装Python3.6.4之后,使用pip命令出现了问题,提示说找不到ssl模块,出现错误如下: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Could not fetch URL https:*******: There was a problem confirming the ssl certifica

pip命令出现了问题,提示说找不到ssl模块

Could not find a version that satisfies the requirement pygame (from versions: ) No matching distribution found for pygame 找不到满足游戏需求的版本(从版本:)找不到匹配的版本 最近在Ubuntu16.04上安装Python3.6之后,使用pip命令出现了问题,提示说找不到ssl模块,出现错误如下: pip is configured with locations that

es6+require混合开发,兼容es6 module,import,export之 加载css及公用date-main

大家好!上篇文章已经介绍了搭建文件夹,以及加载js文件.现在讲一下加载css ,以及对baseUrl的理解 1.对项目结构的认知 一个项目的结构是根据项目的架构来决定的,当然也可以做到更智能,但是意义不大.下边看一下我的结构 我用到第三方库(js),未编译的es6代码(test),编译后的es5代码(src),样式表文件(css).项目中用到了require css.js用来加载css文件.                                                 安装插件

mac 或linux上 pip 不支持ssl的问题

报错: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. 新版的pip 默认要求使用https源了, pip 的源可以使用国内的源,下载速度会很快. 参考这个 http://mirrors.aliyun.com/help/pypi pip.conf中要有trusted-host,就可以不用https了.同时也可以解决你的问题. 在~/.

Centos6.6升级Python与安装ipython、pip小结

CentOS6.6自带的Python版本为2.6.6,想给他升级一下,安装Python2.7.9 一.准备安装包  wget https://bootstrap.pypa.io/get-pip.py #下载setuptools和pip  wget https://pypi.python.org/packages/source/i/ipython/ipython-3.1.0.tar.gz #下载ipython  wget https://www.python.org/ftp/python/2.7.

如何为shell安装有道及更新pip.

今天尝试安装shell下的有道翻译,提示需要安装pip. [root@mestery ~]# yum install python-pip [root@mestery ~]# sudo pip install youdao 然而系统提示pip版本过期. [root@mestery ~]# sudo pip install youdao ---------------------------------------- Command "/usr/bin/python2 -u -c "im

解决Linux 安装python3 .5 解决pip 安装无法成功问题ssl安全拦截无法pip安装库问题

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=4