最近在Ubuntu16.04上安装Python3.6之后,使用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 certificate:
Can't connect to HTTPS URL because the SSL module is not available. - skipping
本人安装Python3.6的操作如下:
1.wget获取安装包:
wget http://www.python.org/ftp/python/3.6.2/Python-3.6.2.tgz
2.解压安装包:
tar -xvzf Python-3.6.2.tgz
3.检查安装平台属性,系统是否有编译时所需要额库,以及库的版本是否满足编译需要
./configure
4.编译源码
make
5.成功编译之后,安装
sudo make install
在安装完之后,我们希望用pip3命令来安装numpy。首先,用如下命令安装pip3:
sudo install python3-pip
安装完之后,使用pip3安装numpy:
sudo pip install python-numpy
但是此时就出错了,