python - 使用 pip 安装模块
问题描述
我正在尝试使用 pip 安装 python 模块,但出现以下错误
我尝试使用 anaconda 提示符安装它并且成功并且能够在 jupyter notebook 中使用但我无法在 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
解决方案
推荐阅读
- maven - 有没有办法自动增加通过詹金斯构建工作的版本?
- azure-devops - 如何为 Azure DevOps 中的计划构建自定义提交名称
- python - Groupby 同时按两个不同的选项
- ansible - 如何以用户身份运行 list_vms 检查(似乎以 root 身份运行)?
- sql - 使用两列的 SQL 日期范围
- node.js - NodeJS:在异步函数之外获取值
- java - 多个不区分大小写的字符串替换
- tensorflow - Conv1D(filters=N, kernel_size=K) 与 Dense(output_dim=N) 层
- javascript - 单击外部引导模式内容时如何重定向?
- c++ - C++ 如何使用类和函数将我的代码转换为 OOP?