王星雨 2019-10-29 16:01 采纳率: 0%
浏览 5216

windows10系统下,Anaconda 3 (Python3.7),使用pip install方法安装第三方库 jieba以及nltk,出现WARNING: pip is configured with locations that require TLS/SSL, however ?

我是windows10系统,安装了Anaconda3 ( python3.7),(电脑里还有python2.7) 想利用pip install 第三方库 但是报错提示如下。

C:\Users\win>cd C:\Users\win\Anaconda3\Scripts

C:\Users\win\Anaconda3\Scripts>pip install jieba
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting jieba
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/jieba/
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/jieba/
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/jieba/
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/jieba/
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/jieba/
  Could not fetch URL https://pypi.org/simple/jieba/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/jieba/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
  ERROR: Could not find a version that satisfies the requirement jieba (from versions: none)
ERROR: No matching distribution found for jieba
WARNING: 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

我搜索了这个问题,有回答说要配置环境变量 , 然而配置后并没有用,可能是我操作不对
图片说明
目前看到一个很靠谱的博客,https://blog.csdn.net/lilongsy/article/details/87436552
但是本人太菜鸡,没看懂
┭┮﹏┭┮

  • 写回答

2条回答 默认 最新

  • 机卸狮老白 2019-10-29 16:45
    关注

    执行以下这个命令

    python -m ensurepip

    评论

报告相同问题?

悬赏问题

  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试