相关疑难解决方法(0)

请求(由SSLError引起(“由于SSL模块不可用,无法连接到HTTPS URL。”)PyCharm请求网站中的错误

通过Pycharm在Python3 Windows中使用请求,并收到SSL模块不可用错误

我花了几个小时试图弄清楚是什么原因造成的。我已经重新安装了Anaconda,并且完全卡住了。运行以下内容时

def Earlybird(daycount):
    url = 'https://msft.com'
    response = requests.get(url)
    print(response)
Earlybird()
Run Code Online (Sandbox Code Playgroud)

我收到错误

requests.exceptions.SSLError: HTTPSConnectionPool(host='msft.com', 
port=443): Max retries exceeded with url: / (Caused by SSLError("Can't 
connect to HTTPS URL because the SSL module is not available."))
Run Code Online (Sandbox Code Playgroud)

我不知道是什么原因造成的。由于Anaconda是最新安装的软件,因此我认为一切都是最新的,因此我不确定这是否指向错误的SSL吗?我对python有点陌生,因此感谢您的耐心配合。--

python ssl https pycharm python-requests

35
推荐指数
11
解决办法
4万
查看次数

标签 统计

https ×1

pycharm ×1

python ×1

python-requests ×1

ssl ×1