Can‘t connect to HTTPS URL because the SSL module is not available - 关于anaconda中的SSL模块错误

Caused by SSLError(“Can‘t connect to HTTPS URL because the SSL module is not available.“) 详解 前言 本文描述手动编译 python3.10 缺少 openssl 模块问题解决方案和几个小时解决这个问题的全过程。虽然我编译的是 python3.10,但是对于 python3.6、python3.8 应该同样适用。 解决方案 给新手说一下,我的服务器环境是 centos7,你们如果是其他环境,不要奇怪为啥某些命令用不了,百度一下。下面进入正题: 安装 openssl-1.1.1 wget https://www.openssl.org/source/openssl-1.1.1n.tar.gz --no 阅读详情
AI摘要

当使用requests库访问HTTPS请求时遇到SSLError,提示SSL模块不可用。尝试设置verify=False或通过pip安装缺失的包未果。问题源于conda的openssl路径配置不正确。解决方案是将Anaconda的library/bin目录下的openssl dll文件复制到DLLs目录下,从而修复SSL问题并使pip恢复正常。

问题描述

起因是在使用requests包访问https请求时,出现了SSLError,提示Caused by SSLError(“Can’t connect to HTTPS URL because the SSL module is not available.”
在这里插入图片描述
根据一些博客设置verify=False,依然无效。
在这里插入图片描述
在尝试通过pip指定安装缺少的包时,也出现了类似的提示。

通过pip install 命令安装包时,出现了

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/ssl/
在这里插入图片描述
或者对于已安装的版本,提示WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
在这里插入图片描述
有些博客通过使用pip3.x指令(如我安装的是3.8.6版本的python,因此使用pip3.8)执行安装,没起作用。

解决方案

原文地址 https://github.com/conda/conda/issues/8273
在这里插入图片描述

大意是:conda找错了openssl的地址,conda在Anaconda\DLLs目录下寻找openssl的dll文件,但实际上需要的dll在Anaconda3\library\bin目录下。因此只需要将这两个文件复制到 Anaconda\DLLs下即可。

根据提示复制两个dll到指定目录。
D:\Anaconda\Library\bin -> D:\Anaconda\DLLs
在这里插入图片描述
不再报错
在这里插入图片描述
同时pip也恢复正常。
在这里插入图片描述
最后,github NB!

如果这篇文章对你有用,可以点个赞再走哦~~

Caused by SSLError(“Can‘t connect to HTTPS URL because the SSL module is not available.“ 解决Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."报错并重新安装python3 阅读详情

相关推荐

Can't connect to HTTPS URL because the SSL module is not available

Can't connect to HTTPS URL because the SSL module is not available

jacke121的专栏 9302

解决报错:Can‘t connect to HTTPS URL because the SSL module is not available.

解决报错:Can't connect to HTTPS URL because the SSL module is not available.

qq_44184866的博客 4603

Can‘t connect to HTTPS URL because the SSL module is not available

pip install mxnet-cu101 这时报错: Can't connect to HTTPS URL because the SSL module is not available 我这可行的方法: 参考:https://blog.youkuaiyun.com/vevenlcf/article/details/89045349 如图把Library/bin添加到Path,并且放在第一个。再安装就嫩正确。 ...

jacke121的专栏 2444

解决"Can't connect to HTTPS URL because the SSL module is not available.问题

初学python。由于最近要学习一些机器学习方面的知识,所以基础到了python,可是这方面以前没有接触过,所以在使用Anaconda时频频出错。 对于"Can’t connect to HTTPS URL because the SSL module is not available.这个问题。报错如下: 刚开始我只看到了上图1的问题,一直以为是网络和镜像的原因,后来注意到2处显示Can’t ...

weixin_37826412的博客 4万+

使用 Unity Sentis 和 Compute Shader,det_10g.onnx 进行高效人脸五官定位

在计算机视觉领域,人脸五官定位是一个重要的任务。本文将介绍如何使用 Unity Sentis 和 Compute Shader,结合模型,实现高效的人脸五官定位。我们将详细讲解每一步骤,并提供完整的代码示例。

m0_55632444的博客 2394

Scipy优化踩坑实录:trust-constr和SLSQP约束定义到底差在哪?

本文深入解析了Scipy优化模块中trust-constr和SLSQP两种方法在约束定义上的差异。通过对比面向对象的trust-constr和字典式定义的SLSQP,揭示了它们各自的优势与适用场景,帮助开发者在有约束优化问题中选择合适的算法,提升计算效率与准确性。

weixin_42573113的博客 271

关于Anaconda python以及pycharm中出现SSL不可用的解决办法

问题描述:“Can’t connect to HTTPS URL because the SSL module is not available.” 出现import requests 提示"Can't connect to HTTPS URL because the SSL module is not available." 以及pip install XXX 或者conda upgrade c...

yancy的专栏 6717

5步搞定ABB机器人RobotStudio与S7-1500PLC的Profinet通讯(附PLCSIM调试技巧)

本文详细介绍了如何利用RobotStudio与TIA Portal软件,结合PLCSIM Advanced仿真器,在零硬件条件下实现ABB机器人与西门子S7-1500 PLC之间的Profinet通讯虚拟调试。通过五个核心步骤,从环境搭建、网络配置、信号映射到联合仿真与高级调试,帮助工程师在项目前期高效验证逻辑、压缩现场调试周期,并掌握实用的PLCSIM调试技巧。

weixin_29188043的博客 506

Python安装spacy报错: Can't connect to HTTPS URL because the SSL module is not available

Python安装spacy报错: Can't connect to HTTPS URL because the SSL module is not available问题描述问题分析解决方法 问题描述 作为新手刚开始学习NLP,在Windows上利用Anaconda自带的python安装spacy时,在cmd中输入命令:python -m spacy download en一直报错Can’t co...

zcyzhangzhou的博客 1万+

Chromium实用技巧篇-如何下载指定版本的Chromium(一)

通过本指南,您已成功掌握如何在Windows系统上下载并安装最新版本的Chromium浏览器。我们详细介绍了从进入Chromium官网,到查找最新版本号,再到下载和安装的每一个步骤。通过这些步骤,您不仅能够体验到最新的浏览器功能,还可以参与开源项目的开发,享受高速、稳定、安全的浏览体验。

守城小轩的技术窝棚 1万+

论文精读-ReTransformer ReRAM-based Processing-in-MemoryArchitecture for Transformer Acceleration

Transformer已经成为一种流行的深度神经网络(DNN)模型,用于神经语言处理(NLP)应用,并在神经机器翻译、实体识别等方面表现出优异的性能。然而,其在自回归解码器中的规模化点积注意机制在推理过程中带来了性能瓶颈。Transformer也是计算和内存密集型的,需要硬件加速解决方案。

a284365的博客 1923

(20210301已解决)Can‘t connect to HTTPS URL because the SSL module is not available.

Overview 使用requests发送消息,出现如下错误: Can’t connect to HTTPS URL because the SSL module is not available. 请求的url并无问题,Linux端的运行也正常,只有Windows下面anaconda运行异常。 Solution 参考中3,4,5是比较常见的几种解释,于我情况无作用。 我的情况是采用Reference1中第二个答案: # copy the files libcrypto-1_1-x64.* li..

漫步量化 2611

作物生长模型Oryza V3实战10:运行文件参数详解

运行文件(.rer)用于批量模拟农业场景,包含多组参数集(Rerunset),每组设定独立的时间范围、灌溉施肥方案等,支持测试不同农艺措施效果。该文件可实现参数自动校准,通过多组参数组合迭代寻找最优值。模拟结果文件(res.dat)会记录全部测试时间段的数据,便于用户对比产量、水分利用率等指标,筛选最优方案或分析气候适应性策略。

209

python Can't connect to HTTPS URL because the SSL module is not available的解决方法

Can’t connect to HTTPS URL because the SSL module is not available的解决方法 问题: 在使用pip 或者 爬虫爬取HTTPs时 有时SSL报错 查看最根源的错误是"Can’t connect to HTTPS URL because the SSL module is not available." 原因是Anaconda自带的SS...

qq_43054017的博客 3261

5实践报告撰写

一 项目流程 明确标准 确定分析目标 寻找分析数据 清洗数据 描述性分析 诊断性分析 提出建议 撰写报告 二 确定分析目标 什么是你感兴趣的? 什么是你熟悉的? 什么是你擅长的? 1 电商零售行业 商品销量分析 价格分析 评价分析 ...... 2 自媒体行业 广告投放力度分析 广告投放回报分析 不同类型的产品分析 ...... 3 金融行业 股票价格分析 信贷业务违约分析 客户画像分析 ...... ...

waywardG的博客 2833

168、运动控制中的标定:编码器零点标定

文章摘要 运动控制系统中的编码器零点标定是确保精确控制的关键基础步骤。文章通过实际案例说明,即使0.3度的零点偏移也会导致电机异常抖动。详细介绍了三种标定方法:反电动势法(需示波器)、电流注入法(适合量产)和霍尔传感器法(粗标定),并指出常见陷阱如忽略极对数、Z脉冲重复性问题和温度漂移。提供了基于STM32的嵌入式实现代码片段,强调标定后的静态、动态和负载验证的重要性。作者建议量产产品设置自动标定工位,研发样机采用更精确的方法,并强调标定数据应与电机序列号绑定。

m0_50546716的博客 137

【已解决】Caused by SSLError(“Can‘t connect to HTTPS URL because the SSL module is not available.“

【代码】【已解决】Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."

oPerform的专栏 2670

Statistics and Machine Learning Toolbox

Statistics and Machine Learning Toolbox(带书签),MATLAB统计学习工具

Anaconda SSL错误 SSLError("Can\'t connect to HTTPS URL because the SSL module is not available.解决办法

Anaconda SSL错误 SSLError("Can’t connect to HTTPS URL because the SSL module is not available.解决办法 https://slproweb.com/products/Win32OpenSSL.html 按照默认地址安装即可 light包也可用 ...

zyzy123321的博客 609

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

在pycharm中爬取网站,报错SSLError(“Can‘t connect to HTTPS URL because the SSL module is not available.

SSLError("Can't connect to HTTPS URL because the SSL module is not available.

weixin_65156172的博客 1057

精雕软件(JDpaint) 5.5 绿色版

精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版

pip下载【非pip版本问题】:Can’t connect to HTTPS URL because the SSL module is not available

Caused bySSLError("Can’t connect to HTTPS URL because the SSL module is not available) 一开始以为是因为版本原因,打算更新pip,但是因为连接不上一直报错所以也更新不了,于是只能暴力卸载anaconda重新安装最新的,结果还是不行! 又以为是源的问题,使用语句,将pip镜像换成清华源 pip config set global.index-url Simple Index 但还是不行! 又试...

正义的反派人士的博客 1434

Caused by SSLError("Can’t connect to HTTPS URL because the SSL module is not available)解决方式

Caused by SSLError("Can’t connect to HTTPS URL because the SSL module is not available) 原因是anaconda没有安装好,环境变量没有配置成功,需要添加三条环境变量 E:\anaconda; E:\anaconda\Scripts; E:\anaconda\Library\bin ...

xuyan14的博客 5226

Caused by SSLError(“Can‘t connect to HTTPS URL because the SSL module is not available)

1.问题描述 window10环境下,使用Anaconda安装相关包时,报错:Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available) 2.解决办法 参考博客:https://blog.youkuaiyun.com/weixin_37766087/article/details/100746309 ...

anglemanyi的博客 517

anaconda安装pytorch报错:(Caused by SSLError(“Can‘t connect to HTTPS URL because the SSL module is not av

anaconda安装pytorch报错: CondaSSLError: OpenSSL appears to be unavailable on this machine. OpenSSL is required to download and install packages. Exception: HTTPSConnectionPool(host='conda.anaconda.org', port=443): Max retries exceeded with url: /pytorch/win-6

weixin_66026285的博客 1311

Can‘t connect to HTTPS URL because the SSL module is not available.

的dll文件,但实际上需要的dll在Anaconda3\library\bin目录下。因此只需要将这两个文件复制到 Anaconda\DLLs下即可。的地址,conda在Anaconda\DLLs目录下寻找。根据提示复制两个dll到指定目录。

weixin_37706944的博客 269
上一篇: Maven中GeoTools的引入 - Maven 的 repository 与 mirror
下一篇: git命令超实用总结(23条超实用命令,个人避坑,特此记录)
Sky_Tree_Delivery
博客等级 码龄9年 1289粉丝 6原创
评论 72
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值