Python
-
[Python][VsCode]报错 python:命令“Python:Select:Interpreter“ command ‘python.setInterpreter‘ not found
错误情况: 在使用ctrl+shift+P后使用Python:Select:Interpreter切换解释器出错 报错如下 解决方案: 在左侧扩展栏目中搜索@workspaceUnsupported 发现pyt…… -
解决BUG:error: metadata-generation-failed
BUG说明: 执行命令:pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple 时报错,经分析未检测单setuptools-57.5.0 具体报错…… -
libtorch_cuda_cu.so: cannot open shared object file
1.问题描述: from mmdet.apis import inference_detector, init_detecto 运行时报错: ImportError: libtorch_cuda_cu.so: cannot open shared object fil…… -
用selenium解决滑块验证码
前言 因为种种原因没能实现愿景的目标,在这里记录一下中间结果,也算是一个收场吧。这篇博客主要是用selenium解决滑块验证码的个别案列。 思路: 用seleni…… -
用Python制作一个自动点击器,三种模块都可以
顾名思义,Python中的自动点击器是一个简单的Python应用程序,可以按照用户的要求重复点击鼠标。不同的参数,如速度、频率和位置,可以根据用户的要求进行改…… -
AttributeError: module ‘torch‘ has no attribute ‘cuda‘
看了下原因为没有装pytorch。(印象中是装了的不知道什么时候这台服务器没有了。。) 解决方案:到pytorch官网上找到对应的cuda版本的pytorch安装即可 Previo…… -
Python utf-8编码转换方法
Python utf-8编码转换方法 在Python编程开发中,我们经常需要处理各式各样的字符串,其中,涉及到字符串的编码问题就是一个很重要的方面。特别是在我们需要将…… -
【Python】Python读取CSV文件
CSV文件是一种常见的数据存储格式,很多人在日常工作中需要使用Python处理CSV文件。Python提供了多种方法来读取CSV文件,包括使用标准库、第三方库和内置函数…… -
【Pycharm教程】PyCharm 配置 Python 项目运行和调试
PyCharm 使用运行/调试配置来运行、调试和测试您的代码。每个配置都是一组命名的启动属性,它们定义要执行的内容以及应该使用的参数和环境。 使用不同的启动…… -
解决python-报错—-ValueError: setting an array element with a sequence.
在训练模型时,系统报错,出现如下情况: ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1……