![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Computer knowledge
文章平均质量分 52
一个处女座的程序猿
人工智能硕博学历,拥有十多项发明专利(6项)和软著(9项),包括国际期刊SCI内多篇论文,多个国家级证书(2个国三级、3个国四级),曾获国内外“人工智能算法”竞赛(包括国家级省市级等,一等奖5项、二等奖4项、三等奖2项)证书十多项,以上均以第一作者身份,并拥有省市校级个人荣誉证书十多项。目前也是国内知名博主,连续3年获CSDN十大博客之星,荣获达摩院评测官、阿里社区/CSDN社区/51CTO/华为社区等十多个开发者社区专家博主荣誉,曾受邀阿里/华为/谷歌等社区采访-评审-论坛几十次。截止2022年,AI领域粉丝超100万,文章阅读量超5000万。正在撰写《AI算法最新实战》一书,目前已30万字
展开
-
成功解决AssertionError: Timestamps must be monotonically increasing, got 2024-06-28T16:07:31.185238+00:0
成功解决AssertionError: Timestamps must be monotonically increasing, got 2024-06-28T16:07:31.185238+00:00 > 如果使用外部库管理时间戳,可以在每次调用时增加一些微秒,以确保时间戳是唯一且递增的。根据错误信息,问题出在时间戳没有单调递增,这意味着两个相同的时间戳被记录在日志中。>> 确保每个消息的时间戳是唯一的。原创 2024-06-29 00:21:57 · 1175 阅读 · 0 评论 -
成功解决TypeError: __call__() got an unexpected keyword argument ‘first_int‘
成功解决TypeError: __call__() got an unexpected keyword argument 'first_int'目录解决问题解决思路解决方法解决问题result = multiply(**arguments)File "D:\ProgramData\Anaconda3\Lib\site-packages\langchain_core\_api\deprecation.py", line 168, in warning_emitti原创 2024-06-28 01:42:04 · 1160 阅读 · 0 评论 -
成功解决\torch\cuda_init_.py“, line 239,AssertionError(“Torch not compiled with CUDA enabled“)
成功解决\torch\cuda_init_.py", line 239, in _lazy_init raise AssertionError("Torch not compiled with CUDA enabled")目录解决问题解决思路解决方法解决问题\torch\cuda_init_.py", line 239, in _lazy_init raise AssertionError("Torch not compiled with CUDA enable原创 2024-06-15 11:32:44 · 1647 阅读 · 0 评论 -
成功解决TypeError: multiple bases have instance lay-out conflict
成功解决TypeError: multiple bases have instance lay-out conflict目录解决问题解决思路解决方法解决问题TypeError: multiple bases have instance lay-out conflictTraceback (most recent call last):File "E:\File_Python\Python_daydayup\20230927.py", line 11, in原创 2024-06-05 00:25:43 · 1249 阅读 · 0 评论 -
成功解决AttributeError: module ‘pandas.core.strings‘ has no attribute ‘StringMethods‘
成功解决AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods'目录解决问题解决方法解决问题AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods'解决方法第一次尝试,猜测pandas和dask不兼容的问题导致!pip uninstall pandaspip uninstall原创 2024-06-05 00:21:28 · 1087 阅读 · 0 评论 -
成功解决CUDA Setup failed despite GPU being available. Inspect the CUDA SETUP outputs above to fix your
成功解决CUDA Setup failed despite GPU being available. Inspect the CUDA SETUP outputs above to fix your environment!目录解决问题解决思路解决方法解决问题===================================BUG REPORT===================================Welcome to bitsandbytes. For原创 2024-05-26 00:29:19 · 1071 阅读 · 0 评论 -
成功解决name ‘round_up‘ is not defined
成功解决name 'round_up' is not defined目录解决问题解决思路解决方法解决问题name 'round_up' is not defined解决思路'round_up'函数没有定义解决方法官方地址:GitHub - OpenBMB/cpm_kernelscpm_kernels的whl下载地址:Links for cpm-kernelscpm_kernels 提供了在 NVIDIA GPU 上运行的 CUDA 内核,这些内核专门为 CPM原创 2023-12-21 22:08:31 · 973 阅读 · 0 评论 -
成功解决No module named ‘huggingface_hub.inference._text_generation‘
成功解决No module named 'huggingface_hub.inference._text_generation'目录解决问题解决思路解决方法解决问题No module named 'huggingface_hub.inference._text_generation'解决思路没有名为'huggingface_hub.inference._text_generation'的模块解决方法相关地址:Hugging Face Integration Failur原创 2024-05-12 14:39:05 · 1904 阅读 · 1 评论 -
成功解决ImportError: cannot import name ‘builder‘ from ‘google.protobuf.internal
成功解决ImportError: cannot import name 'builder' from 'google.protobuf.internal。原创 2024-04-25 02:09:55 · 1667 阅读 · 0 评论 -
成功解决import win32gui ImportError: DLL load failed while importing win32gui: 找不到指定的程序
成功解决import win32gui ImportError: DLL load failed while importing win32gui: 找不到指定的程序目录解决问题解决思路解决方法解决问题import win32gui ImportError: DLL load failed while importing win32gui: 找不到指定的程序解决思路import win32gui导入错误:导入win32gui时加载DLL失败解决方法表明 Pytho原创 2024-03-17 03:29:42 · 1712 阅读 · 0 评论 -
成功解决If this call came from a _pb2.py file, your generated code is out of date and must be regenerate
数值型属性使用簇内所有对象的属性均值作为新的聚类中心,而类别型属性则使用出现频率最高的类别作为新的聚类中心。>> 距离计算方法:K-prototype算法使用欧氏距离计算数值型数据之间的距离,使用海明距离或简化的曼哈顿距离计算类别型数据之间的距离,具体采用了一种基于众数的距离计算方法,将分类型变量的距离定义为两个变量不同取值的数量。2、要求整理后的内容,把重复的内容尽量去掉,同时逻辑更加通顺,条理更加清楚,要尽量在表达清楚的同时尽量简约一下内容,但是前后逻辑一定要非常合理,上下文要足够连贯和条理清楚。原创 2024-03-16 01:50:47 · 1434 阅读 · 0 评论 -
成功解决AttributeError: module ‘pdpbox.info_plots‘ has no attribute ‘target_plot‘
成功解决AttributeError: module 'pdpbox.info_plots' has no attribute 'target_plot'原创 2024-03-09 23:59:12 · 1273 阅读 · 1 评论 -
成功解决TypeError: cannot unpack non-iterable TargetPlot object
> 如果 TargetPlot 函数确实应该返回三个值,那么你可能需要检查 pdpbox 库的版本,因为可能存在 bug 或者函数行为在不同的版本中有所不同。如果你查看 pdpbox 的文档或源代码,你应该能够找到确切的信息。>> 如果 TargetPlot 函数返回的确实只是一个对象,你需要根据库的文档来正确地处理这个对象。错误表明 info_plots.TargetPlot 函数没有返回三个值(fig, axes, summary_df),而是返回了一个 TargetPlot 对象。原创 2024-03-09 23:55:58 · 1232 阅读 · 0 评论 -
成功解决AttributeError: ‘CountVectorizer‘ object has no attribute ‘get_feature_names‘
成功解决AttributeError: 'CountVectorizer' object has no attribute 'get_feature_names'目录解决问题解决思路解决方法解决问题AttributeError: 'CountVectorizer' object has no attribute 'get_feature_names'解决思路属性错误:'CountVectorizer'对象没有属性'get_feature_names'解决方法参考地址:s原创 2024-01-07 20:28:41 · 1294 阅读 · 0 评论 -
成功解决AttributeError: ‘EntitySet‘ object has no attribute ‘entity_from_dataframe‘
成功解决AttributeError: 'EntitySet' object has no attribute 'entity_from_dataframe'属性错误:'EntitySet'对象没有属性'entity_from_dataframe'目前只是猜测,估计应该是 featuretools==1.0之前的版本。原创 2024-03-01 00:11:22 · 1244 阅读 · 1 评论 -
成功解决AttributeError: module ‘pandas.core.strings‘ has no attribute ‘StringMethods‘
成功解决AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods'目录解决问题解决思路解决方法解决问题AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods'解决思路属性错误:module 'pandas.core。string '没有属性'StringMethods'解决方法是原创 2024-03-01 00:09:46 · 2370 阅读 · 0 评论 -
成功解决scipy.optimize._optimize.BracketError: The algorithm terminated without finding a valid bracket.
成功解决scipy.optimize._optimize.BracketError: The algorithm terminated without finding a valid bracket. Consider trying different initial points.目录解决问题解决思路解决方法解决问题scipy.optimize._optimize.BracketError: The algorithm terminated without finding原创 2024-02-27 00:02:23 · 1782 阅读 · 2 评论 -
成功解决pydantic.errors.PydanticImportError: `BaseSettings` has been moved to the `pydantic-settings` pa
成功解决pydantic.errors.PydanticImportError: `BaseSettings` has been moved to the `pydantic-settings` package目录解决问题解决思路解决方法解决问题pydantic.errors.PydanticImportError: `BaseSettings` has been moved to the `pydantic-settings` package解决思路pydantic导入错误原创 2024-02-21 21:57:08 · 4197 阅读 · 2 评论 -
成功解决Server responded “algorithms negotiation failed. “Key exchange with the remote host failed. This
您可以编辑 sshd_config 文件,以确保服务器端支持您所需的算法,或者编辑 ssh_config 文件以确保客户端选择适当的算法。通常,这种问题是由于远程主机和本地主机之间支持的加密算法不匹配或协商失败引起的。通常,这种问题是由于远程主机和本地主机之间支持的加密算法不匹配或协商失败引起的。如果使用的是一个SSH客户端,尝试使用另一个不同的SSH客户端(例如PuTTY)来连接到远程主机,以查看是否有不同的结果。如果您没有控制远程主机的配置,可以尝试联系远程主机的管理员,让他们检查并修复算法协商问题。原创 2024-01-29 00:08:17 · 1481 阅读 · 0 评论 -
成功解决TypeError: can‘t multiply sequence by non-int of type ‘float‘
成功解决TypeError: can't multiply sequence by non-int of type 'float'目录解决问题解决思路解决方法解决问题TypeError: can't multiply sequence by non-int of type 'float'解决思路类型错误:不能将sequence乘以“float”类型的非整数解决方法两个数据类型不一致,不能够进行multiply运算!重新检查输入数据类型,本原创 2024-01-07 20:10:46 · 1097 阅读 · 0 评论 -
成功解决numpy.linalg.LinAlgError: singular matrix
成功解决numpy.linalg.LinAlgError: singular matrix目录解决问题解决思路解决方法解决问题numpy.linalg.LinAlgError: singular matrix解决思路线性错误:奇异矩阵。可知,当前矩阵不可逆,解决方法这个错误通常表示在进行线性代数运算时,你的代码遇到了一个奇异矩阵(singular matrix)。奇异矩阵是一个行列式为零的方阵,其逆矩阵不存在。这个问题可能有多种原因,取决于你的具体代码和数据。以原创 2023-12-15 00:53:29 · 2439 阅读 · 0 评论 -
成功解决ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C
成功解决ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject目录解决问题解决思路解决方法解决问题ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C h原创 2023-11-25 00:02:59 · 1031 阅读 · 0 评论 -
成功解决ERROR: Cannot uninstall ‘llvmlite‘. It is a distutils installed project and thus we cannot accur
成功解决ERROR: Cannot uninstall 'llvmlite'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.目录解决问题解决思路解决方法解决问题ERROR: Cannot uninstall 'llvmlite'. It原创 2023-11-25 00:02:25 · 1055 阅读 · 0 评论 -
成功解决from numba.np.ufunc import _internal SystemError: initialization of _internal failed without rai
成功解决from numba.np.ufunc import _internal SystemError: initialization of _internal failed without raising an exception目录解决问题解决思路解决方法解决问题from numba.np.ufunc import _internalSystemError: initialization of _internal failed without raising an exc原创 2023-11-25 00:02:09 · 2798 阅读 · 0 评论 -
成功解决405 Method Not Allowed. The method is not allowed for the requested URL.
成功解决405 Method Not Allowed. The method is not allowed for the requested URL.目录解决问题解决思路解决方法解决问题 405 Method Not Allowed Method Not Allowed The method is not allowe原创 2023-11-04 21:21:00 · 3272 阅读 · 0 评论 -
成功解决fatal error: stdatomic.h: No such file or directory #include <stdatomic.h>
成功解决fatal error: stdatomic.h: No such file or directory #include 目录解决问题解决思路解决方法解决问题I llama.cpp build info:I UNAME_S: LinuxI UNAME_P: x86_64I UNAME_M: x86_64I CFLAGS: -I. -Icommon -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -DND原创 2023-11-06 20:28:28 · 2699 阅读 · 0 评论 -
成功解决/bin/sh: cc: command not found和/bin/sh: g++: command not found
成功解决/bin/sh: cc: command not found和/bin/sh: g++: command not found目录解决问题解决思路解决方法解决问题make: cc: Command not found/bin/sh: cc: command not foundexpr: syntax errorexpr: syntax errormake: cc: Command not foundI llama.cpp build info:I UNAME_S:原创 2023-11-06 20:28:59 · 3437 阅读 · 0 评论 -
成功解决ImportError: cannot import name ‘PEFT_TYPE_TO_MODEL_MAPPING‘ from ‘peft.peft_model‘ (D:\ProgramD
成功解决ImportError: cannot import name 'PEFT_TYPE_TO_MODEL_MAPPING' from 'peft.peft_model' (D:\ProgramData\Anaconda3\Lib\site-packages\peft\peft_model.py)目录解决问题解决思路解决方法解决问题ImportError: cannot import name 'PEFT_TYPE_TO_MODEL_MAPPING' from 'peft.pe原创 2023-10-31 22:52:01 · 1285 阅读 · 0 评论 -
成功解决ImportError: cannot import name ‘Row‘ from ‘sqlalchemy‘ (D:\ProgramData\Anaconda3\Lib\site-packa
成功解决ImportError: cannot import name 'Row' from 'sqlalchemy' (D:\ProgramData\Anaconda3\Lib\site-packages\sqlalchemy\__init__.py)目录解决问题解决思路解决方法解决问题from sqlalchemy import Column, Integer, Row, String, create_engine, selectImportError: cannot im原创 2023-10-31 22:42:53 · 1709 阅读 · 0 评论 -
成功解决InvalidKeyException: Invalid characters in key: nlp_model\m3e-base_from_huggingfaceb318a7ec-e997
错误信息 "langchain.storage.exceptions.InvalidKeyException: Invalid characters in key",似乎是因为你的文件路径包含了不合法的字符,导致无法作为键来使用。需要确保键值只包含有效的字符,并且不包含特殊字符或路径分隔符。如果你无法避免在文件路径中使用特殊字符,可以尝试使用转义字符来处理它们,例如将\转义为双斜杠\\或者反斜杠/)、星号 (*),或其他不能用作键的字符。检查文件路径中的特殊字符和空格:确保文件路径中没有特殊字符,如。原创 2023-10-31 22:31:38 · 877 阅读 · 0 评论 -
成功解决HTTPSConnectionPool(host=‘huggingface.co‘, port=443): Max retries exceeded with url:LocalEntryNo
HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url:LocalEntryNotFoundError: Connection error, and we cannot find the requestedfiles in the disk cache. Please try again or make sure your Internet connection is on.目录解决原创 2023-10-20 23:38:56 · 10833 阅读 · 6 评论 -
成功解决Failed to import transformers.models.vision_encoder_decoder.modeling_vision_encoder_decoder beca
成功解决Failed to import transformers.models.vision_encoder_decoder.modeling_vision_encoder_decoder because of the following error (look up to see its traceback):目录解决问题解决思路解决方法解决问题RuntimeError: Failed to import transformers.models.vision_encoder_d原创 2023-10-20 23:38:31 · 2161 阅读 · 0 评论 -
成功解决AttributeError: module ‘lib‘ has no attribute ‘OpenSSL_add_all_algorithms‘
成功解决AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'目录解决问题解决思路解决方法解决问题RuntimeError: Failed to import transformers.models.vision_encoder_decoder.modeling_vision_encoder_decoder because of the following error (look up原创 2023-10-20 23:38:11 · 1659 阅读 · 0 评论 -
成功解决ModuleNotFoundError: No module named ‘docx.text.hyperlink‘
成功解决ModuleNotFoundError: No module named 'docx.text.hyperlink'目录解决问题解决方法解决问题No module named 'docx.text.hyperlink'"。这个错误通常表示你的代码中缺少了一个名为"docx.text.hyperlink"的模块pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade python-docx解决方法原创 2023-10-20 23:37:49 · 2348 阅读 · 1 评论 -
成功解决OSError: [E050] Can‘t find model ‘en_trf_bertbaseuncased_lg‘. It doesn‘t seem to be a Python pac
成功解决OSError: [E050] Can't find model 'en_trf_bertbaseuncased_lg'. It doesn't seem to be a Python package or a valid path to a data directory.目录解决问题解决思路解决方法解决问题OSError: [E050] Can't find model 'en_trf_bertbaseuncased_lg'. It doesn't seem to b原创 2023-06-09 21:39:40 · 1720 阅读 · 0 评论 -
成功解决RuntimeError: [enforce fail at C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\c
成功解决RuntimeError: [enforce fail at C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\c10\core\impl\alloc_cpu.cpp:72] data. DefaultCPUAllocator: not enough memory: you tried to allocate 180355072 bytes.目录解决问题解决思路解决方法T1、减少内存需求T2原创 2023-06-02 22:43:49 · 13113 阅读 · 2 评论 -
成功解决RuntimeError: “addmm_impl_cpu_“ not implemented for ‘Half‘
成功解决RuntimeError: "addmm_impl_cpu_" not implemented for 'Half'目录解决问题解决思路解决方法解决问题torch.set_default_tensor_type(torch.HalfTensor)RuntimeError: "addmm_impl_cpu_" not implemented for 'Half'解决思路运行时错误:"addmm_impl_cpu_"未为'Half'实现在PyTorch中,半精度原创 2023-06-02 22:40:22 · 14231 阅读 · 0 评论 -
成功解决RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu
成功解决RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument index in method wrapper_CUDA__index_select)目录解决问题解决思路解决方法解决问题RuntimeError: Expected all ten原创 2023-06-02 22:38:18 · 7325 阅读 · 0 评论 -
成功解决torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 86.00 MiB (GPU 0; 2.00 GiB to
成功解决torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 86.00 MiB (GPU 0; 2.00 GiB total capacity; 1.67 GiB already allocated; 0 bytes free; 1.67 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_spl原创 2023-06-02 22:35:00 · 13258 阅读 · 0 评论 -
成功解决C._set_default_tensor_type(t) TypeError: type torch.cuda.HalfTensor not available. Torch not com
成功解决C._set_default_tensor_type(t) TypeError: type torch.cuda.HalfTensor not available. Torch not compiled with CUDA enabled.目录解决问题解决思路解决方法解决问题_C._set_default_tensor_type(t) TypeError: type torch.cuda.HalfTensor not available. Torch not comp原创 2023-06-02 22:34:28 · 1238 阅读 · 0 评论