- 博客(157)
- 资源 (3)
- 收藏
- 关注
原创 conda更新bug. RemoveError: is a dependency of conda and cannot be removed from conda‘s operating envi
【代码】conda更新bug. RemoveError: is a dependency of conda and cannot be removed from conda‘s operating envi。
2023-09-04 21:15:49
1147
原创 tensorflow报错a Variable name or other graph key that is missin, Restoring from checkpoint failed. T
tensorflow报错
2023-04-29 13:49:22
609
原创 chrome 报错connection is not private. NET::ERR_CERT_COMMON_NAME_INVALID Provisional headers warning
chatgpt某个浏览器无法打开网址
2023-03-15 19:19:32
1164
原创 使用tensorflow或tensorboard打开events.out.tfevents.xxxxx文件
三种方式打开events.out.tfevents.xxxxxx文件1. 使用tensorboard打开2. 使用tensorflow.compat.v1.train.summary_iterator3. 使用tensorflow.data.TFRecordDataset
2022-10-10 21:30:43
3368
原创 macbookpro无法安装tensorflow (Could not find a version that satisfies the requirement tensorflow)
mac无法安装tensorflow
2022-09-24 12:43:42
825
1
原创 sphinx+reStructuredText写文档、发布网站 (源码+发布效果)
sphinx+reStructuredText写文档、发布网站 (源码+发布效果)
2022-09-12 23:51:30
586
原创 macOS添加环境变量(为什么添加.bash_profile不会生效)
macOS添加环境变量:说明.bash_profile不生效的原因并且给出解决方法。
2022-08-20 18:18:44
751
原创 idea打开maven项目报错:程序包org.apache.commons.xxx不存在
idea打开maven项目报错:程序包org.apache.commons.xxx不存在
2022-08-16 13:12:51
3735
原创 jetbrains idea调试java不显示静态变量解决
问题:idea调试java似乎不显示静态变。解决:在设置里面选择调试java时显示静态变量。
2022-07-27 11:59:59
2677
原创 npm简介及 --save,--save-dev的区别(dependencies vs devDependencies)
NPM全名Node Package Manager,是常用的包管理工具。在使用npm时,package.json会记录当前项目安装的所有软件包。用于安装dependencies——项目使用的包。用于安装**devDependencies——只在开发或测试时使用的包**。缩写为,在npm v5.0.0后成为预设命令,无需指明。
2022-06-02 13:16:27
325
1
原创 Struct.error: unpack requires a buffer of 16 bytes
可能在代码中使用了被损坏的文件,或者文件的类型错误。如将png格式图片直接改为iso格式文件使用会报此类错误。
2022-05-09 14:50:49
1422
原创 Pyinstaller exe file doesn‘t take any input
使用Pyinstaller时如果想使用input函数,则应该使用console模式,gui模式不能使用。如下pyinstaller --noconfirm --onefile --console test.py
2022-05-09 14:48:27
312
原创 pip安装python包报错VS14.0 link.exe failed with exit status 1158
解决依据stackoverflow的一个回答可以解决这个问题。解决步骤如下将下面的路径加入PATH环境变量C:\Program Files (x86)\Windows Kits\10\bin\x64</code>将rc.exe和rcdll.dll复制到C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin中,win10中rc.exe和rcdll.dll的位置在C:\Program Files (x86)\Windows K
2022-04-26 23:12:20
1272
1
原创 使用pip报错error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools“:
原因用pip安装一些python库如pix2tex, steem等时需要使用C++编译器,但是电脑没有安装,导致出现以下错误error: Microsoft Visual C++ 14.0 is required. Get it with Microsoft VisualC++ Build Tools": http:/www.visualstudio.com/visual-cpp-build-tools解决安装Microsoft Visual C++ Build Tools,建议直接装visual
2022-04-26 22:58:09
2558
1
原创 vscode无法保存jupyter notebook Failed to save ‘Untitled-1.ipynb‘: Unable to resolve filesystem provider
问题使用vscode创建新的jupyter notebook后无法保存原因这是vscode的jupyter插件自身出了问题,见https://github.com/microsoft/vscode-jupyter/issues/1677解决解决方法issue中给了两个如下图:建议使用第二个方法,步骤如下按ctrl+shift+p,键入settings,打开设置文件(json格式),将代码段 “jupyter.experiments.optInto”: [“CustomEditor
2022-04-26 22:37:27
4988
2
原创 报错openml...returned code 102: No authentication(Please provide API...)
原因使用openml.runs.run_model_on_task等函数时没有指定apikey解决去https://openml.org/注册openml,然后在使用openml.runs前加上apikey,格式如下openml.config.apikey = “your_key”f = openml.runs.run_model_on_task(model, task, …)api key的位置注册后右上角点击个人资料,然后就能看到api key的按键了。...
2022-04-26 22:26:52
615
原创 ValueError: decision_function_shape must be either ‘ovr‘ or ‘ovo‘, got None.
原因使用sklearn库中的sklearn.svm.SVC、sklearn.svm.NuSVC等库时,将参数decision_function_shape指定为None了。解决不指定SVC的参数decision_function_shape,这时默认为’ovr’显式指定SVC的参数decision_function_shape,可以指定为’ovo’或者’ovr’点击这里进入sklearn关于svc的文档,里面说明了版本更新的变化...
2022-04-26 22:19:19
922
原创 彻底卸载流氓软件如360等 1. 使用卸载软件(附下载链接) 2. 安全模式删除两种方法
彻底删除360两种方法删除360udiskguard.dll等
2022-04-25 16:45:12
15067
2
原创 open file location(打开文件所在位置)报错This file doesnothave an app associated..(该文件没有与之相关的程序来执行该操作)
open file location(打开文件所在位置)报错This file doesnothave an app associated..(该文件没有与之相关的程序来执行该操作)原因据我观察,大都是使用了其他的文件资源管理软件导致的,诸如Q-Dir, xyplore, directory opus等。这些文件资源管理器会修改注册表导致无法完成“open file location(打开文件所在位置)”的操作解决将注册表项修改回来按下win+r输入regedit回车打开注册表找到注册
2022-04-25 15:49:33
2171
原创 将图片中的公式转化为latex代码(image to latex)。两种方法:python包或者snip软件
image to latex工具介绍
2022-04-25 11:20:08
15721
12
原创 Latex正确的引用姿势(使用~\cite, ~\cref, ~\autoref)
为什么使用~~起到限制换行的作用,例如表 ~\ref{mytable}能够确保"表x"在一行。诸如\cite, \eqref, \citet, \citep, \ref, \cref, \autoref等都应该在前面加上~,这样能够使文章更具有可读性使用~\cref, ~\autoref~\cref命令在宏包cleveref中,它能够将自动识别引用类型,如引用图片会自动加上前缀figure,引用小节会自动加上section~\qutoref 命令在宏包hyperref中,作用与~\cref类似,但是
2022-04-09 15:45:13
19630
5
原创 python的name mangling
python没有为类实现私有属性,因此设计了一种折衷方法来实现这一点。(私有属性不被子类继承)实现方法对类属性命名时,开头前加上两个以上的下划线;对类属性命名时,末尾下划线的个数不超过一个;例子class Test: def __func1(self): pass def __func2__(self): pass __var1 = 1 ___var2_ = 2 __var3__ = 4
2021-10-12 15:13:55
504
原创 LaTeX使用IEEE模板 相邻参考文献作者相同被横线代替 解决方法
如果相同作者比较多,那么间隔在作者名前插入\vspace{0mm}。如上图所示即可。保证相邻作者不同即可在这篇文章中作者说修改bst文件中的下面一行可以解决,然而并不可行。FUNCTION {default.is.dash.repeated.names} { #1 }...
2021-10-07 16:59:22
3032
9
原创 win10 Tex Live安装太慢解决:使用镜像安装(清华/科大/南大/香港镜像)
Tex Live安装太慢解决:使用镜像安装(清华/科大/南大镜像)下载镜像下面分别是四个镜像站的texlive iso镜像地址:清华镜像https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/科大镜像https://mirrors.ustc.edu.cn/CTAN/systems/texlive/Images/南大镜像https://mirrors.nju.edu.cn/CTAN/systems/texlive/Image
2021-08-17 11:44:43
25118
7
原创 执行setup.py报错TEST FAILED: xxx does NOT support .pth files error: bad install
情形执行setup.py(此处)python setup.py install --prefix=/home/user/.local报错:TEST FAILED: /home/user/.local/lib/python3.7/site-packages/ does NOT support .pth files error: bad install directory or PYTHONPATHYou are attempting to install a package to a direc
2021-08-12 13:45:35
3825
原创 TypeError: Object of type xxx(int64) is not JSON serializable原理解释和修改方法
原因使用json编码时,数据格式超出了支持的范围。对json来说,其默认支持的数据格式包括:当对不支持的格式进行编码时,就会出现此错误。如TypeError: Object of type int64 is not JSON serializable。如下面的例子例一>>> import json>>> with open("test.json", "w") as fp:... json.dump(np.int32(1), fp)...Trac
2021-08-11 15:21:12
1874
Revo Uninstaller Pro v5.0
2022-05-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人