python3.6的pip管理器出问题 ssl模块未安装

17 篇文章 0 订阅

没的办法  看到廖雪峰老师的pip那里了 结果发现pip安装Pilow出了问题 说我有ssl模块未安装

奇怪 我的openssl明明自带的啊

不清楚到底什么原因

找了一波博文

最后搜到两个有点作用的

1.安装该安装的 已经安装的可以跳过

Kali是这样的

apt-get install openssl

apt-get libssl-dev

其他的有yum仓库的

yum install openssl

yum install openssl-devel -y

2. 改下Moudles/Setup

cd  <安装路径>

vi Modules/Setup
#修改结果如下:
# Socket module helper for socket(2)
_socket socketmodule.c timemodule.c

# Socket module helper for SSL support; you must comment out the other
# socket line above, and possibly edit the SSL variable:
#SSL=/usr/local/ssl
_ssl _ssl.c \
-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
-L$(SSL)/lib -lssl -lcrypto

3.重新走一波节奏

./configure

make && make install

4.python3

>>>import ssl  #检测成功!

>>>




Reference:

1.http://www.cnblogs.com/yuechaotian/archive/2013/06/03/3115472.html

2.http://stackoverflow.com/questions/41098252/pip-install-require-tsl-ssl



  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值