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 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 "", 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

解决方法:

#卸载python重新安装
conda uninstall python
conda install python=3.6.2

你可能感兴趣的:(pip,ssl,python)