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

  • 错误信息:win10,anaconda3环境下使用pip报错——pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available
  • 原因:没有添加环境变量。在win10中安装anaconda后使用pip需要将下面三个目录添加到环境变量: D:\Anaconda3;
    D:\Anaconda3\Scripts;
    D:\Anaconda3\Library\bin
  • 解决:添加环境变量
    按下win+q打开搜索框,输入environment进入编辑环境变量,然后修改环境变量(将缺的添加到系统环境变量中)




参考:https://stackoverflow.com/questions/45954528/pip-is-configured-with-locations-that-require-tls-ssl-however-the-ssl-module-in

猜你喜欢

转载自blog.csdn.net/qq_34769162/article/details/108724204