使用 pip 提示:
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
环境是:conda + pycharm
使用 pycharm 下载包时 列表不显示包,搜索也报错。
cmd 输入命令就提示 :
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
尝试了网上很多方法没有解决,最后发现用 cmd 激活 conda虚拟环境去安装就可以正常下载包。
困扰了我一天,记录一下避免下次遇到再头疼。
conda activate 虚拟环境名称
pip install pytest