pip安装时发生的ssl证书错误

摘自https://blog.csdn.net/qq_38154948/article/details/83988948

pip is configured with locations that require TLS/SSL, however the ssl modul

安装openssl

sudo apt-get install openssl
sudo apt-get install libssl-dev

更改这个文件的配置/home/pi/Python-3.6.1/Modules/Setup

sudo nano /home/pi/Python-3.6.1/Modules/Setup
去掉几个注释就好了
关键词搜索SSL
cd Python-3.6.1 
sudo make 
sudo make install 

重新编译安装就好了

点赞

发表评论

电子邮件地址不会被公开。必填项已用 * 标注