python winerror 10065_OSError:[WinError 1450]系统资源不足,无法通过Anaconda使用Python中的Selenium完成请求的服务...

当尝试在Windows上使用Anaconda和Python的Selenium运行脚本时,遇到了'Insufficient system resources exist to complete the requested service'错误。尽管CPU和内存使用率正常,问题依然存在。错误可能与Python客户端和操作系统有关,而不是Selenium。解决方案包括修改注册表以修复系统资源不足的问题和扫描磁盘驱动器以检查错误。
摘要由CSDN通过智能技术生成

I've been running the same python script using windows task scheduler for the past month, then all of a sudden the script runs into an Insufficient Resources error (see below). My CPU and RAM are at normal levels (CPU is <10% and RAM is <20%) when I try to run the program. I have quadrupled both the CPU and RAM on the virtual machine, but I still get the same error.

This is the code I'm trying to run:

from selenium import webdriver

browser = webdriver.Firefox()

This is the error I'm getting:

Traceback (most recent call last):

File "Desktop\Scripts\Selenium_file.py", line 34, in

browser = webdriver.Firefox()

File "C:\ProgramData\Anaconda3\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 164, in __init__

self.service.start()

File "C:\ProgramData\Anaconda3\li

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值