- 博客(136)
- 收藏
- 关注
原创 解决:[Errno 14] curl#6 - “Could not resolve host: mirrors.cloud.aliyuncs.com; Unknown error“
经过查阅资料,发现出现"[Errno 14] curl#6 - ‘Could not resolve host: mirrors.cloud.aliyuncs.com;Unknown error’"错误的原因是非阿里云ECS用户无法解析主机“mirrors.cloud.aliyuncs.com”,只需将CentOS-Base里包含aliyuncs.com的行删除即可。如果能够显示yum源列表,则说明本地yum源配置成功。要解决这个错误,这里总结了以下几个步骤。小伙伴们按下面的解决方法即可解决!
2024-08-06 11:57:42
2144
1
原创 解决:The native API dll was not found (C:\Windows\system32\WinHvPlatform.dll) (VERR_NEM_NOT_AVAILABLE)
将“Intel ® Virtualization Technology”选项从“Disabled”改为“Enabled”,这样就开启了CPU虚拟化技术。回到电脑桌面,右击任务栏,选择“任务管理器”。在“任务管理器”的“性能”选项卡中,点击“CPU”选项,可以看到“虚拟化已启用”的提示,表示虚拟化设置成功。在BIOS设置中,寻找与虚拟化相关的选项。这些选项可能位于“Security”或“Advanced”、“Configuration”等部分,具体位置因主板而异。
2024-08-03 14:33:01
1582
原创 解决:selenium.common.exceptions.JavascriptException: Message: javascript error: $ is not defined
背景在使用之前的代码时,报错:Traceback (most recent call last):File “xxx”, line xx, indriver.execute_script(“$(arguments[0]).click()”,dbt)File “D:\develop\python\Python3\Python37\lib\site-packages\selenium\webdriveremote\webdriver.py”, line 405, in ......
2024-06-06 00:00:00
2429
2
原创 解决Selenium NameError: name ‘By’ is not defined
在使用Selenium进行Web自动化测试时,遇到了一个常见的错误:NameError: name 'By' is not defined。这个错误表明我们的代码中没有正确地导入By类,导致无法识别By这个名称。错误原因未导入By类:在使用Selenium时,我们需要从selenium.webdriver.common.by模块中导入By类,以便使用其提供的定位策略(如By.ID, By.XPATH等)。拼写错误或大小写问题:在Python中,大小写敏感,所以必须确保By的拼写完全正确。
2024-05-22 20:54:44
1693
原创 解决:ModuleNotFoundError: No module named ‘torchvision’
背景在使用之前的代码时,报错: Traceback (most recent call last): File "xxx", line xx, in import torchvision ModuleNotFoundError: No module named 'torchvision'翻译:```追溯(最近一次通话):文件“xxx”,第xx行,在导入torchvision......
2024-02-01 00:00:00
16277
14
原创 解决:ModuleNotFoundError: No module named ‘tiktoken’
背景在使用之前的代码时,报错: Traceback (most recent call last): File "xxx", line xx, in import tiktoken ModuleNotFoundError: No module named 'tiktoken'翻译:```追溯(最近一次通话):文件“xxx”,第xx行,在导入tiktokenModuleNotFoundError:没有名为“tiktoken”的模块```.....
2024-01-31 18:02:44
3517
原创 解决:NameError: name ‘x’ is not defined
背景在使用之前的代码时,报错:Traceback (most recent call last): File "xxx", line xx, in print(Employee) # 👈️ 拼写错误的变量名...NameError: name 'x' is not defined翻译:```追溯(最近一次通话):文件“xxx”,第xx行,在中print(员工)#👈️ 拼写错误的变量名...NameError:未定义名称“x”.....
2024-01-31 17:33:13
3674
原创 解决:AttributeError: ‘str’ object has no attribute ‘capabilities’
背景在使用之前的代码时,报错:Traceback (most recent call last): File "xxx", line xx, in driver = webdriver.Chrome() File \“xxx/webdriver.py\”, line 73, in __init__ super().__init__() File \“xxx/webdriver.py\”, line 104, in __init__ ......
2024-01-30 18:00:00
10976
4
原创 解决:ModuleNotFoundError: No module named ‘selenium’
背景在使用之前的代码时,报错: Traceback (most recent call last): File "xxx", line xx, in import selenium ModuleNotFoundError: No module named 'selenium'翻译:```追溯(最近一次通话):文件“xxx”,第xx行,在导入seleniumModuleNotFoundError:没有名为“selenium”的模块```原因...
2024-01-30 11:23:52
7197
原创 解决:‘chromedriver’ executable needs to be in PATH
背景在使用之前的代码时,报错:Traceback (most recent call last): File "xxx", line xx, in driver = webdriver.Chrome()'chromedriver’ executable needs to be in PATH翻译:```追溯(最近一次通话):文件“xxx”,第xx行,在中driver=网络驱动程序。色度()“chromedriver”可执行文件需要在......
2024-01-26 19:54:46
3434
1
原创 解决:selenium.common.exceptions.WebDriverException:Message:Can not connect to the Service chromedriver
背景在使用之前的代码时,报错:Traceback (most recent call last): File "xxx", line xx, in driver = webdriver.Chrome() File \“xxx/webdriver.py\”, line 73, in init self.service.start() File \“xxx/service.py\”, line 104, in start.......
2024-01-26 17:31:10
3276
原创 解决:ModuleNotFoundError: No module named ‘dbutils’
背景在使用之前的代码时,报错: Traceback (most recent call last): File "xxx", line xx, in import dbutils ModuleNotFoundError: No module named 'dbutils'翻译:```追溯(最近一次通话):文件“xxx”,第xx行,在导入dbutilsModuleNotFoundError:没有名为“dbutils”的模块```原因 ......
2024-01-13 00:00:00
2693
原创 解决:ModuleNotFoundError: No module named ‘dbutils’
背景在使用之前的代码时,报错: Traceback (most recent call last): File "xxx", line xx, in import dbutils ModuleNotFoundError: No module named 'dbutils'翻译:```追溯(最近一次通话):文件“xxx”,第xx行,在导入dbutilsModuleNotFoundError:没有名为“dbutils”的模块```原因 ......
2024-01-12 12:45:00
2331
原创 解决:ModuleNotFoundError: No module named ‘pymysql’
背景在使用之前的代码时,报错: Traceback (most recent call last): File "xxx", line xx, in import pymysql ModuleNotFoundError: No module named 'pymysql'翻译:```追溯(最近一次通话):文件“xxx”,第xx行,在导入pymysqlModuleNotFoundError:没有名为“pymysql”的模块```原因 ......
2024-01-12 01:00:00
11898
2
原创 解决:TypeError: ‘dict_keys’ object does not support indexing
背景在使用之前的代码时,报错:Traceback (most recent call last): File "xxx", line xx, in lst[0] = 2TypeError: 'dict_keys' object does not support indexing翻译:```追溯(最近一次通话):文件“xxx”,第xx行,在中lst[0]=2TypeError:“dict_keys”对象不支持索引```原因经过查阅资料...
2024-01-11 18:45:00
753
原创 解决:TypeError: ‘set’ object does not support indexing
背景在使用之前的代码时,报错:Traceback (most recent call last): File "xxx", line xx, in name_list1[0] = 2TypeError: 'set' object does not support indexing翻译:```追溯(最近一次通话):文件“xxx”,第xx行,在中name_list1[0]=2TypeError:“set”对象不支持索引```原因......
2024-01-11 12:08:38
1360
原创 解决:TypeError: ‘tuple’ object does not support item assignment
背景在使用之前的代码时,报错:Traceback (most recent call last): File "xxx", line xx, in b[0] = 2TypeError: 'tuple' object does not support item assignment翻译:```追溯(最近一次通话):文件“xxx”,第xx行,在中b[0]=2TypeError:“tuple”对象不支持项分配```原因经过查阅资料,发现 ...
2024-01-06 21:04:59
1232
原创 解决:ModuleNotFoundError: No module named ‘bs4’
背景在使用之前的代码时,报错: Traceback (most recent call last): File "xxx", line xx, in import bs4 ModuleNotFoundError: No module named 'bs4'翻译:```追溯(最近一次通话):文件“xxx”,第xx行,在导入bs4ModuleNotFoundError:没有名为“bs4”的模块```原因经过查阅资料,发现是这个错误通常是由于...
2024-01-06 00:30:00
5973
3
原创 解决:ERROR: Failed building wheel for xxx
背景在使用之前的代码构建环境时,报错:ERROR: Failed building wheel for xxx翻译:```错误:为xxx构建轮子失败```原因经过查阅资料,发现是这个错误产生的原因是由于没有安装python-dev导致的,需要安装python-dev,否则就会出现这样的错误。
2024-01-05 18:30:00
3753
2
原创 解决:ModuleNotFoundError: No module named ‘zhon’
背景在使用之前的代码时,报错: Traceback (most recent call last): File "xxx", line xx, in import zhon ModuleNotFoundError: No module named 'zhon'翻译:```追溯(最近一次通话):文件“xxx”,第xx行,在导入zhonModuleNotFoundError:没有名为“zhon”的模块```原因经过查阅资料,发现......
2024-01-05 12:45:25
1921
原创 解决:TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败
背景在使用之前的代码时,报错:Traceback (most recent call last): File "xxx", line xx, in req = requests.get(url, headers=headers, proxies=proxies)TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败翻译:```追溯(最近一次通话):文件“xxx”,第xx行 ... ...
2024-01-03 23:45:00
15288
原创 解决:ValueError:Timeout value connect was Timeout(connect=2.0,read=2.0,total=None),but it must be an
背景在使用之前的代码时,报错:Traceback (most recent call last): File "xxx", line xx, in req = requests.get(url, headers=headers, proxies=proxies, timeout=(3,7))ValueError: Timeout value connect was Timeout(connect=2.0, read=2.0, total=None), but it ...
2024-01-03 19:30:49
1279
原创 解决:PermissionError: [Errno 13] Permission denied: ‘xxx’
背景在使用之前的代码时,报错:Traceback (most recent call last): File "xxx", line xx, in with open(file_path, 'r') as f:PermissionError: [Errno 13] Permission denied: 'xxx' 翻译:```追溯(最近一次通话):文件“xxx”,第xx行,在中open(file_path,'r')为f:......
2024-01-02 20:34:22
4266
原创 解决:ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or
背景在使用之前的代码时,报错:Traceback (most recent call last): File "xxx", line xx, in if data_1==data_2:ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()翻译:```追溯(最近一次通话):文件“xxx”,第xx行,在
2024-01-02 01:00:00
3588
2
原创 解决:OSError: cannot write mode RGBA as JPEG
背景在使用之前的代码时,报错:Traceback (most recent call last): File "xxx", line xx, in captcha.save('code.png')OSError: cannot write mode RGBA as JPEG翻译:```追溯(最近一次通话):文件“xxx”,第xx行,在中captcha.save('code.png')O错误:无法将模式RGBA写入JPEG```原因...
2023-12-21 13:00:00
1941
原创 解决:AttributeError: module ‘scipy.misc’ has no attribute ‘imresize’
背景在使用之前的代码时,报错:Traceback (most recent call last): File "xxx", line xx, in misc.imresize(cropped_temp, (image_size, image_size), interp='bilinear')AttributeError: module 'scipy.misc' has no attribute 'imresize'翻译:```追溯(最近一次通话):......
2023-12-21 00:06:17
1419
原创 解决:AttributeError: module ‘scipy.misc’ has no attribute ‘imread’
背景在使用之前的代码时,报错:Traceback (most recent call last): File "xxx", line xx, in misc.imread(input_path)AttributeError: module 'scipy.misc' has no attribute 'imread'翻译:```追溯(最近一次通话):文件“xxx”,第xx行,在中杂项imread(输入路径)AttributeError......
2023-12-18 13:00:00
2862
原创 解决:AttributeError: module ‘scipy.misc’ has no attribute ‘imsave’
背景在使用之前的代码时,报错:Traceback (most recent call last): File "xxx", line xx, in misc.imsave(output_path, scaled_temp)AttributeError: module 'scipy.misc' has no attribute 'imsave'翻译:```追溯(最近一次通话):文件“xxx”,第xx行,在中misc.imsave ... ...
2023-12-18 00:00:00
2192
原创 解决:TypeError: write() argument must be str, not tuple
背景在使用之前的代码时,报错:Traceback (most recent call last): File "E:/Test/test.py", line 14, in file.write(lines)TypeError: write() argument must be str, not tuple翻译:```追溯(最近一次通话):文件“E:/Test/Test.py”,第14行,在中file.write(lines)... ...
2023-12-16 22:28:42
2470
原创 解决:AttributeError: ‘dict’ object has no attribute ‘has_key’
背景在使用之前的代码时,报错:Traceback (most recent call last): File "xxx", line xx, in print(dict.has_key("name"))AttributeError: 'dict' object has no attribute 'has_key翻译:```追溯(最近一次通话):文件“xxx”,第xx行,在中print(dict.has_key("name"))... ...
2023-12-16 00:15:00
3267
原创 解决:fatal:unable to access‘https://github.com/xx/xx.git/‘:OpenSSL SSL_read:Connection was reset errno
背景在使用之前的代码时,报错:fatal: unable to access 'https://github.com/xxx/xxx.git/': OpenSSL SSL_read: Connection was reset, errno 10054翻译:```致命:无法访问'https://github.com/xxx/xxx.git/':OpenSSL SSL_read:连接已重置,错误号10054```原因经过查阅资料,发现这个错误产生的原因是git在拉取或者提交项目时......
2023-12-15 19:00:00
2370
原创 解决:InsecureRequestWarning:Unverified HTTPS request is being made to host ‘xx.cn’. Adding ......
背景在使用之前的代码时,报错:D:/Anaconda_soft/envs/pytorch/lib/site-packages/urllib3/connectionpool.py:1043: InsecureRequestWarning: Unverified HTTPS request is being made to host 'www.dytt89.com'. Adding certificate verification is strongly advised. See: ......
2023-12-15 00:15:00
3682
原创 解决:requests.exceptions.ProxyError:HTTPSConnectionPool(host=‘xxx.com’,port=443):Max retries exceeded
背景在使用之前的代码时,报错:requests.exceptions.ProxyError: HTTPSConnectionPool(host='www.xxxx.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', timeout('_ssl.c:1108: The handshake operation timed out')))... ...
2023-12-14 12:45:00
11114
4
原创 解决:ImportError: cannot import name ‘PyKeyboard’ from ‘pykeyboard’
背景在使用之前的代码时,报错:Traceback (most recent call last): File "xxx", line xx, in from pykeyboard import PyKeyboard ImportError: cannot import name 'PyKeyboard' from 'pykeyboard' (D:/python/xxx/__init__.py)翻译:```追溯(最近一次通话):文件“xxx”,第xx行 ......
2023-12-14 00:30:00
1906
原创 解决:ModuleNotFoundError: No module named ‘windows’
背景在使用之前的代码时,报错:Traceback (most recent call last): File "E:/Test/test.py", line 14, in from pymouse import PyMouse, PyMouseEventModuleNotFoundError: No module named 'windows'翻译:```追溯(最近一次通话):文件“E:/Test/Test.py”,第14行,在中... ...
2023-12-13 19:55:35
2518
原创 解决:WARNING: Ignoring invalid distribution -ip (d:\python37\lib\site-packages)
背景为了使用之前的代码,搭建环境时,报错:WARNING: Ignoring invalid distribution -ip (d:\python37\lib\site-packages)翻译:```警告:忽略无效的分发-ip(d:\python37\lib\site软件包)```原因经过查阅资料,发现是这个错误产生的原因是之前安装插件失败或者中途退出,导致插件安装出现异常导致的。然后就会产生这样的错误提示。
2023-12-13 01:00:00
3104
原创 解决:TypeError: write() argument must be str, not Tag
背景在使用之前的代码时,报错:Traceback (most recent call last): File "E:/Test/test.py", line 14, in file.write(tag_str)TypeError: write() argument must be str, not Tag翻译:```追溯(最近一次通话):文件“E:/Test/Test.py”,第14行,在中file.write(tag_str)......
2023-12-12 12:45:00
1627
原创 解决:TypeError: Type ‘list’ cannot be serialized
背景在使用之前的代码时,报错:Traceback (most recent call last): File "E:/Test/test.py", line 14, in d = etree.tostring(divs) File "src/lxml/etree.py", line 3443, in lxml.etree.tostringTypeError: Type 'list' cannot be serialized.翻译:```追溯(最近一次调用)...
2023-12-12 09:30:00
1611
原创 解决SyntaxError:(unicode error)‘unicodeescape’ codec can’t decode bytes in position x:truncaed escape
背景在使用之前的代码时,报错:SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 378-379: truncated \UXXXXXXXX escape翻译:```SyntaxError:(unicode错误)“unicodeescape”编解码器无法解码位置378-379中的字节:截断\UXXXXXXXX转义```原因经过查阅资料,发现SyntaxError这个错误通常 ...
2023-12-11 19:00:00
10356
原创 解决:GuessedAtParserWarning:No parser was explicitly specified,so I‘m using the best available HTML...
背景在使用之前的代码时,报错:GuessedAtParserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html.parser"). This usually isn't a problem, but if you run this code on another system, or in a different ......
2023-12-11 12:54:44
1667
Python 3.12.0 macOS pkg 的zip安装包
2023-11-16
Python 3.12.0 Windows installer (64 -bit)的zip安装包
2023-11-16
Python 3.12.0 Windows installer (ARM64)安装包
2023-11-16
Python 3.12.0 Windows installer (32 -bit)安装包
2023-11-16
jdk-20-macos-x64-bin.dmg安装包
2023-04-21
jdk-20-macos-aarch64-bin.dmg安装包
2023-04-21
openjdk-11.0.2-linux-x64-bin.tar.gz的zip压缩包
2023-04-21
openjdk-20.0.1-macos-x64-bin.tar.gz安装包
2023-04-21
openjdk-20.0.1-windows-x64-bin的zip压缩包
2023-04-21
openjdk-20+36-linux-x64-bin.tar.gz的zip压缩包
2023-04-21
openjdk-20.0.1-macos-aarch64-bin.tar.gz
2023-04-21
openjdk-20.0.1-linux-aarch64-bin.tar.gz
2023-04-21
python-3.11.2-arm64.exe的zip压缩包
2023-04-20
python-3.6.8-amd64.exe的zip压缩包
2023-04-20
python-3.10.10-amd64.exe的zip压缩包
2023-04-20
python-3.7.9-amd64.exe的zip压缩包
2023-04-20
python-3.9.13-amd64.exe的zip压缩包
2023-04-20
python-3.8.10-amd64.exe的zip压缩包
2023-04-20
chromedriver 121 windows x64安装包
2024-01-31
chromedriver 119 windows x64安装包
2024-01-30
chromedriver 118 windows x64安装包
2024-01-30
chromedriver 117 windows x64安装包
2024-01-30
chromedriver 116 windows x64安装包
2024-01-30
chromedriver 120.0.6099.109 windows x64的安装包
2023-12-21
dlib-19.17.99-cp37-cp37m-win-amd64的压缩包
2023-12-06
MySQL-python-1.2.5-cp27-none-win-amd64.whl的zip安装包
2023-12-04
MySQL-python-1.2.5-cp27-none-win32.whl的zip安装包
2023-12-04
python-2.7.18.amd64.msi的zip安装包
2023-12-04
dlib-19.17.99-cp37-cp37m-win-amd64.whl的zip安装包
2023-12-04
python-2.7.18-macosx10.9.pkg的zip安装包
2023-12-04
jdk-21-linux-aarch64-bin.rpm的zip安装包
2023-11-16
jdk-21-windows-x64-bin.msi安装包
2023-11-16
jdk-21-windows-x64-bin.exe安装包
2023-11-16
jdk-21-macos-x64-bin.dmg安装包
2023-11-16
jdk-21-macos-aarch64-bin.dmg安装包
2023-11-16
jdk-21-linux-x64-bin.tar.gz安装包
2023-11-16
jdk-21-linux-aarch64-bin.tar.gz安装包
2023-11-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人