ubuntu下使用pip3.6安装模块总是报ssl module in Python is not available的错误
来源:互联网 发布:免费x网站最新域名 编辑:程序博客网 时间:2024/05/16 14:52
刚刚安装了python3.6,在使用pip3.6安装模块的时候出现如下错误。
[root@www ~]# pip install bottlepip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.Collecting bottleCould not fetch URL https://pypi.python.org/simple/bottle/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skippingCould not find a version that satisfies the requirement bottle (from versions: )No matching distribution found for bottle
从错误提示来看是缺少了ssl模块,但是ubuntu下如何安装ssl模块呢?很多网友给的都是centos下的解决方案....
yum install opensslyum install openssl-devel -y
看到所有的都是centos的解决方案真的很扎心啊,在搜了n多篇资料之后终于找到ubuntu下的解决方案了
1.安装sslsudo apt-get install opensslsudo apt-get install libssl-dev2. 修改Moudles/Setup (该目录在python的解压目录下)vim 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 -lcrypto3.重新安装一次./configure --prefix=/usr/local/pythonmakesudo -H make install4.python3>>>import ssl #检测成功!>>>
阅读全文
0 0
- ubuntu下使用pip3.6安装模块总是报ssl module in Python is not available的错误
- 解决python安装Twisted CompressionError: bz2 module is not available
- ubuntu 下 PUBKEY 报错“public key is not available”
- [python]CompressionError: bz2 module is not available
- python 报 python 2.7 is required ,which is not found in registry 的错误的解决办法
- Ubuntu public key is not available的错误
- Ubuntu public key is not available的错误
- 在Backtrack5中使用msfconsole出现Pcaprub module is not available错误
- Ubuntu下pip3的安装、升级、卸载
- pip is configured with locations that require TLS/SSL, however the ssl module in Python is not avail
- Centos下报“is not in the sudoers file”错误
- python错误TypeError: 'module' object is not callable 的解决方法
- python错误TypeError: 'module' object is not callable 的解决方法
- ubuntu下 安装python module的步骤
- win7下安装python-mysqldb模块以及还报No module named MYSQLdb错误的原因
- scrapy爬虫之错误 No module named PIL + IOError:decoder jpeg not available +PIL的安装
- linux下python使用报ssl验证错误
- python安装的时候报SSL连接错误的解决办法
- ***POJ3255-Roadblocks
- AI圣经!《深度学习》中文版隆重上市!美国亚马逊AI领域排名第一畅销书!
- Spring 模块和 Spring Portfolio
- Ubuntu16.04完全卸载Mysql 5.7
- HIHOCODER 1145 幻想乡的日常 [树状数组][离线]
- ubuntu下使用pip3.6安装模块总是报ssl module in Python is not available的错误
- CSDN Markdown使用教程
- Srping MVC中Controller的void方法声明误区
- 我踩到微信小程序map组件的一些神坑
- 面试经历6
- 华为机试 四则运算
- 你真的了解模运算吗?
- org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleT
- 算法 第八章习题 8.12