使用pip安装模块

时间:2019-02-23 07:33:20

标签: python pip

我正在尝试使用pip安装python模块,但出现以下错误

我尝试使用anaconda提示符安装它,并且成功,并且能够在jupyter笔记本中使用,但我无法在python中使用它

甚至升级了python和pip

我正在使用python版本3.7.2

Microsoft Windows [版本6.1.7600] 版权所有(c)2009 Microsoft Corporation。保留所有权利。

C:\Program Files\Python>pip install pytube
pip is configured with locations that require TLS/SSL, however the ssl module in
 Python is not available.
Collecting pytube
  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 SS
L module is not available.")': /simple/pytube/
  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 SS
L module is not available.")': /simple/pytube/
  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 SS
L module is not available.")': /simple/pytube/
  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 SS
L module is not available.")': /simple/pytube/
  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 SS
L module is not available.")': /simple/pytube/
  Could not fetch URL https://pypi.org/simple/pytube/: There was a problem confi
rming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max r
etries exceeded with url: /simple/pytube/ (Caused by SSLError("Can't connect to
HTTPS URL because the SSL module is not available.")) - skipping
  Could not find a version that satisfies the requirement pytube (from versions:
 )
No matching distribution found for pytube
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 retrie
s exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS UR
L because the SSL module is not available.")) - skipping

0 个答案:

没有答案