zoukankan      html  css  js  c++  java
  • 解决 windows下安装Anaconda后python pip不可用的情况

    在windows系统下通过安装Anaconda的方式安装的python使用中发现不能再通过pip安装python包。只能通过conda install packname 的方法,导致很多conda不支持的包无法安装(我遇到的是 request)

    解决方法:打开Anaconde prompt

                    在该prompt中使用pip而不是命令行或者powershell中使用pip

                   问题顺利解决。

     例如:在命令行pip install dlib                  报错

    pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
    Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

             在Anaconde prompt  运行          pip install requests 顺利安装完成

    Requirement already satisfied: requests in e:anacondalibsite-packages (2.21.0)
    Requirement already satisfied: chardet<3.1.0,>=3.0.2 in e:anacondalibsite-packages (from requests) (3.0.4)
    Requirement already satisfied: certifi>=2017.4.17 in e:anacondalibsite-packages (from requests) (2018.11.29)
    Requirement already satisfied: idna<2.9,>=2.5 in e:anacondalibsite-packages (from requests) (2.8)
    Requirement already satisfied: urllib3<1.25,>=1.21.1 in e:anacondalibsite-packages (from requests) (1.24.1)
  • 相关阅读:
    zabbix笔记之计算型监控项详解
    zabbix笔记之磁盘IO介绍
    zabbix笔记之Graphtree配置
    zabbix笔记之告警时远程执行命令
    zabbix笔记之异常优化
    zabbix笔记之IPMI配置
    基本的sql 语句
    socket 套接字
    调用父类的三种方法
    实例属性和类属性
  • 原文地址:https://www.cnblogs.com/xiaowenshu/p/10621215.html
Copyright © 2011-2022 走看看