No

ModuleNotFoundError: No module named 'pip'

今天打开在anaconda和pycharm中切换后发现原来本地的python的pip报错了,ModuleNotFoundError: No module named 'pip' 后来在网上找到解决办法,首先以管理员身份打开cmd,然后找到自己经常使用的pip路径,输入以下命令 curl https: ......
ModuleNotFoundError module named 39 pip

AttributeError: 'NoneType' object has no attribute 'replace'

在python中执行Js代码,引入 execjs 库,python代码如下: 执行结果如下: 在导入 execjs 模块前,让Popen的encoding参数锁定为utf-8。 import subprocess from functools import partial subprocess.Po ......
39 AttributeError attribute NoneType replace

Django 创建项目时找不到数据库sqlite3,提示no changes detected

原因:PyCharm创建Django项目,找不到数据库sqlite3 解决:如果没有默认的db文件,则应在PyCharm终端中执行以下命令: python manage.py makemigrations:提示python manage.py migrate ......
detected sqlite3 changes 数据库 项目

NO_HZ: 降低调度时钟中断 【ChatGPT】

https://www.kernel.org/doc/html/v6.6/timers/no_hz.html 降低调度时钟中断 本文描述了 Kconfig 选项和引导参数,可以减少调度时钟中断的次数,从而提高能效并减少操作系统的抖动。减少操作系统的抖动对于某些类型的计算密集型高性能计算(HPC)应用 ......
时钟 ChatGPT NO_HZ NO HZ

测试类注入Bean失败,Could not autowire, No bean of 'XxxService' type found

Spring Boot 2.2 是第一个正式支持 JUnit 5 的版本。 因此在写测试类的时候,JUnit4和JUnit5是有一点区别的。JUnit4需要需要两个注解 @SpringBootTest @Runwith(SpringRunner.class) Junit5的测试类则只需要一个注解 @ ......
XxxService autowire Could found Bean

Vue报错:error Mixed spaces and tabs no-mixed-spaces-and-tabs

Vue报错:error Mixed spaces and tabs no-mixed-spaces-and-tabs 一、解释 在开发过程中使用了ESLint,用来规范代码风格。ESLint是语法检查工具,缺点是对所写代码要求过于严格。这里是因为空格的使用导致的。 二、报错可能出现的地方 我第一次出 ......

Confluence7.4.6突然爆事务隔离级别问题-解决方案-MySQL session isolation level 'REPEATABLE-READ' is no longer supported.

MySQL session isolation level 'REPEATABLE-READ' is no longer supported. Session isolation level must be 'READ-COMMITTED'. See http://confluence.atlass ......

Linux学习35- python3.9出现ModuleNotFoundError: No module named '_ctypes'的解决

遇到问题 pip 安装第三方库的时候报错ModuleNotFoundError: No module named '_ctypes' File "/usr/local/python3/lib/python3.9/ctypes/__init__.py", line 7, in <module> fro ......

记录issue:iptables (legacy): Couldn't load match `comment':No such file or directory\n\nTry `

用nerdctl起容器碰到如下issue: FATA[0001] failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error d ......
directory iptables comment Couldn legacy

No.1

\(f(x)\) 定义域在 \((0,+\infty)\) ,\(f(1)=1 + e\),满足 \(x_2>x_1>0\) 时 \(x_2f(x_1)-x_1f(x_2)>x_2 e^{x_1} - x_1 e^{x_2}\),求 \(f(\ln x)>x+\ln x\) 的解集。 \[x_2(f ......
No

CF1838C No Prime Differences 题解

题意: 思路: 构造: $ n $ 行 $ m $ 列,先填奇数行,每行填 $ m $ 个,第 $ 2i - 1 $ 行依次填入 $ (i - 1) \cdot m + 1 $ , $ (i - 1) \cdot m + 2 $ , $ ... $ , $ i \cdot m - 1 $ , $ i ......
题解 Differences 1838C Prime 1838

解决pre -commit hook failed (add --no-verify)的问题

由于对 sourcetree 的 husky 预推送,Git 推送失败 解决办法: 使用 Sourcetree 的绕过提交钩子设置(在提交消息字段右上角的菜单中) ......
no-verify commit failed verify 问题

Redis报错:(error) DENIED Redis is running in protected mode because protected mode is enabled and no password is set for the default user

一、报错内容 (error) DENIED Redis is running in protected mode because protected mode is enabled and no password is set for the default user. In this mode c ......
protected Redis mode is password

ModuleNotFoundError: No module named '_pytest.resultlog'

新环境运行Python时报错 ModuleNotFoundError: No module named '_pytest.resultlog' 上网查,看到解决方法 https://www.cnblogs.com/QiKa/p/14457269.html 解决办法:①升级pytest-rerunfa ......

交叉编译提示ModuleNotFoundError: No module named 'packaging'

如果你的目标环境中的python是通过交叉编译自行生成的,可能会遇到这个提示 在你已经完成python的交叉编译后,你就需要crossenv,然后完成对应库的适配 #Make crossenv pip install crossenv python3 -m crossenv --without-pi ......

docker-compose运行的容器 curl No route to host

# 信任docker0 网卡firewall-cmd --permanent --zone=trusted --change-interface=docker0 && firewall-cmd --reload docker network inspect csrpmed_default#找出默认网 ......
docker-compose 容器 compose docker route

Linux“No space left on device”系统磁盘空间不足问题排查处理

Linux“No space left on device”系统磁盘空间不足问题排查处理 目录Linux“No space left on device”系统磁盘空间不足问题排查处理1 问题2 排查和处理2.1 第一次排查处理2.2 第二次排查处理 1 问题 今天项目测试环境自动发版失败,确认日志发 ......
磁盘 device 问题 系统 Linux

centos 8 Failed to download metadata for repo ‘AppStream’: Cannot prepare internal mirrorlist: No URLs in mirrorlist

查询后发现问题的原因是Centos8于2021年年底停止了服务,我们在使用yum源安装时候,出现下面错误“错误:Failed to download metadata for repo ‘AppStream’: Cannot prepare internal mirrorlist: No URLs ......

I found no \bibdata command---while reading file main.aux

报错: I found no \bibdata command while reading file main.aux I couldn't open file name `main.aux' 使用vscode 原因是文章使用的是biblatex而不是natbib,所以要用biber而不是bibte ......
bibdata command reading found while

No valid Maven installation found

点击 Maven 的 clean 确报错:Error running 'vs-file-backend-util [clean]': No valid Maven installation found. Either set the home directory in the configurati ......
installation Maven valid found No

ICPC2022Hangzhou C No Bug No Game 题解

Link ICPC2022Hangzhou C No Bug No Game Question 给定 \(n\) 个物品和上限 \(k\),要求最大化分数,物品的选择顺序可以任意 第 \(i\) 个物品一行 \(p_i\) 代表个数,后面 \(p_i\) 个 \(w_j\) 代表容量,定义 \(su ......
题解 Hangzhou ICPC 2022 Game

matplotlib报错:AttributeError: module 'backend_interagg' has no attribute 'FigureCanvas'. Did you mean: 'FigureCanvasAgg'?

使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams['font.sans-serif'] = ['SimHei'] # 能正确显示负号 plt.rcParams['axe ......

No Silver Bullet

"No Silver Bullet" 是一个著名的软件工程论文,由Fred Brooks在1986年发表。这篇论文的全名是《No Silver Bullet — Essence and Accidents of Software Engineering》(没有银弹——软件工程的本质与偶然性)。这篇论 ......
Bullet Silver No

ubuntu编译软件报错:fatal error: libnet.h: No such file or directory

参考: https://blog.csdn.net/wuyou1995/article/details/104742326/ 解决方法: sudo apt-get install libnet1-dev ......
directory ubuntu libnet fatal error

axios(ajax)发送请求响应码200,但获取不到数据,无法加载响应数据: No datafound for resource with givenidentifier问题解决参考

问题截图: 没有响应数据 控制台报错 其实是由于浏览器的跨域资源共享(CORS)策略导致,前后端跨域请求是不行的。什么是域,看页面的url,比如https://www.baidu.com/下的网页都是属于baidu.com这个域。如果你是和我一样是从本地文件打开html的方式来调试ajax,那么一定 ......

mysql 启动报错【Error while setting value ‘NO_ENGINE_SUBSTITUTION, STRICT_TRANS_TABLES‘ to ‘sql_mode‘】解决

报错如下: 原因:mysql配置文件my.ini里的 sql_mode 配置项参数中逗号后面有空格 解决步骤: 打开my.ini文件, 找到sql_mode配置项删除空格,保存 ......

nmap: error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such file or directory解决方法

nmap: error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such file or directory解决方法 nmap运行报错解决方法 在centos7里面直接安装lib ......
shared file directory libraries loading

解决:Expected 1 line break before closing bracket, but no line breaks found.eslint

运行时报错以下 解决 在eslintrc.js rules下添加以下代码 'vue/singleline-html-element-content-newline': 'off', 'vue/multiline-html-element-content-newline': 'off', ......
line Expected bracket closing before

Linux-No.8

一、RPM包管理 掌握RPM软件包安装 熟悉RPM软件包管理 了解使用源码包安装应用程序 二、yum管理器 掌握yum软件包安装 掌握自建yum源 了解yum签名检查机制 1.安装RPM包需要手动处理依赖关系,因为RPM包已经编译完成,所以不能对其内部参数进行修改,安装时还需要考虑系统的版本、系统的 ......
Linux-No Linux No

Linux-No.7

一、文件查找、打包压缩及解压 掌握文件查找 掌握文件打包压缩 掌握文件解压 文件查找: 1.文件查找命令:find命令、locate命令、which命令、whereis命令 2.echo命令可以查看变量PATH的值。使用which命令在环境变量PATH设置的目录中查找符合条件的命令文件,可查看其是否 ......
Linux-No Linux No