当前位置:   article > 正文

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

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

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


屡次遇到ssl的问题,
报错包括:

报错如下:

1、pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
2、There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available
3、Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/lyp/miniconda3/envs/env_l/lib/python3.6/ssl.py", line 101, in <module>
    import _ssl             # if we can't import it, let the error propagate
ImportError: libssl.so.10: cannot open shared object file: No such file or directory
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

解决方法:

#卸载python重新安装
conda uninstall python
conda install python=3.6.2
  • 1
  • 2
  • 3
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/423619
推荐阅读
  

闽ICP备14008679号