再开一贴,python使用requests库时,访问https的网站报错SSL module is not available

bkbkk233 2019-01-30 10:17:30
我用的是pycharm
然后我访问https://www.baidu.com(我已经试过了,http的可以访问,而https不行)
报错了

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

然后神奇的地方来了
当我使用Anaconda promote来运行的时候,是可以访问https的网站的
但我发现他们的运行环境又是一样的






...全文
2641 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
lus1995 2020-10-17
  • 打赏
  • 举报
回复
卧槽,楼主救命恩人 \笑哭
weixin_44069143 2020-03-14
  • 打赏
  • 举报
回复
已解决。问题正如“ 3 楼 bkbkk233 ”所说,是因为anaconda的openssl版本与系统openssl版本不一致造成的。完全不用卸载anaconda,只需要查看anaconda中的openssl版本,然后去openssl官网下载与之一样的版本,然后安装此版本,让系统的版本与anacongda一致即可。本人亲测已解决。
引用 3 楼 bkbkk233 的回复:
哎呀我去 终于解决了,问题在于Anaconda,真是太痛苦了,总之就是Anaconda的ssl和系统自带的ssl版本冲突了。 我试过了各种办法,诸如加入ssl证书的路径啊,什么更新openssl 啊,再比如修改setup.py文件的内容啊,全部都失败了 最终解决办法就是干脆一点,卸载Anaconda,然后老老实实用python官网的下载来的,使用不会出问题。 当然也可以所有文件都在Anaconda promote里面运行,也是没有问题的,只不过就不能用各种IDE了。
Dylan-JT 2020-02-28
  • 打赏
  • 举报
回复
顶起来,求助! 难道anaconda与pyCharm不能同时存在?
Dylan-JT 2020-02-28
  • 打赏
  • 举报
回复
这个问题跟我遇到的一模一样呀,先安装的anaconda,然后安装的PyCharm,使用的anaconda自带的python环境,但是就这种问题。 难道没有解决办法吗?必须卸载anaconda???
南山的云 2019-07-01
  • 打赏
  • 举报
回复
我找了半天搜到一个大佬说的,问题原因是环境变量没配全,配了环境变量之后就好啦,我跟你的问题一毛一样,不知道原因一样不
DouchebagYHP 2019-06-08
  • 打赏
  • 举报
回复
感谢,楼主。发现了,但是不是很想卸载Anaconda,还是用Anaconda base吧..
柒 2019-05-12
  • 打赏
  • 举报
回复
谢谢楼主救命😭😭😭也是论坛翻了好久
__听风__ 2019-04-13
  • 打赏
  • 举报
回复
原来如此,感谢楼主
bkbkk233 2019-02-02
  • 打赏
  • 举报
回复
CSDN的菜鸟,不会编辑标题,问题已解决了哦
bkbkk233 2019-02-02
  • 打赏
  • 举报
回复
哎呀我去 终于解决了,问题在于Anaconda,真是太痛苦了,总之就是Anaconda的ssl和系统自带的ssl版本冲突了。 我试过了各种办法,诸如加入ssl证书的路径啊,什么更新openssl 啊,再比如修改setup.py文件的内容啊,全部都失败了 最终解决办法就是干脆一点,卸载Anaconda,然后老老实实用python官网的下载来的,使用不会出问题。 当然也可以所有文件都在Anaconda promote里面运行,也是没有问题的,只不过就不能用各种IDE了。
bkbkk233 2019-01-30
  • 打赏
  • 举报
回复
然而我肯定不能把pycharm当成一个纯文本编辑器来用,这样太蠢了 我折腾了好几天了,实在解决不了,求求大佬们看看
如果你是一个小型的办公网络,你可以创建一个服务器来进行日程安排,这只是一个开源的小服务器,你果你需要大的免费的软件去http://www.bedework.org/bedework/下载 使用教程 Installation Dependencies Radicale is written in pure python and does not depend on any librabry. It is known to work on Python 2.5, 2.6, 3.0 and 3.1 [1]. Linux users certainly have Python already installed. For Windows and MacOS users, please install Python [2] thanks to the adequate installer. [1] See Python Versions and OS Support for further information. [2] Python download page. Radicale Radicale can be freely downloaded on the project website, download section. Just get the file and unzip it in a folder of your choice. CalDAV Clients At this time Radicale has been tested and works fine with the latests version of Mozilla Sunbird (versions 0.9+), Mozilla Lightning (0.9+), and Evolution (2.30+). More clients will be supported in the future. However, it may work with any calendar client which implements CalDAV specifications too (luck is highly recommanded). To download Sunbird, go to the Sunbird project website and choose the latest version. Follow the instructions depending on your operating system. Simple Usage Starting Server To start Radicale CalDAV server, you have to launch the file called radicale.py located in the root folder of the software package. Using Sunbird or Lightning After starting Sunbird or Lightning, click on File and New Calendar. Upcoming window asks you about your calendar storage. Chose a calendar On the Network, otherwise Sunbird will use its own file system storage instead of Radicale's one and your calendar won't be remotely accessible. Next window asks you to provide information about remote calendar access. Protocol used by Radicale is CalDAV. A standard location for a basic use of a Radicale calendar is http://localhost:5232/user/calendar/, where you can replace user and calendar by some strings of your choice. Calendars are automatically created if needed. You can now customize your calendar by giving it a nickname and a color. This

37,721

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • IT.BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧