调Bug(1)
最近调的几个bug # 1 前言 想写点东西,懒得写长,放一下最近调的几个Bug,水一水。
2 正文
2.1 1 R - Rmarkdown写中文报warning
报错: How to fix Windows R warning message In strsplit input string 1 is invalid in this locale
解决: 命令行输入 > Sys.setlocale("LC_ALL", "English")
参考:How to fix Windows R warning message In strsplit input string 1 is invalid in this locale
2.2 2 Sublime - Package Codeontriol 无法下载插件
报错:There are no packages available for installation
解决:
- 把[path]Text3control文件夹删掉;
- 按官网提示,人工下载Package Control.sublime-package文件,复制到[path]Text3Packages里,重启sublime
2.3 3 Python - Cmd中无法打开Spyder
- 报错: This application failed to start because it could not find or load the Qt platform plugin "windows" in "".
- 解决:更新qt > conda install qt
2.4 4 Python - LibSVM 使用
说明: 并非下了包放在sitepackage文件夹里面就可以直接用,还需要建立两个空的py文件
2.5 5 Matlab2016 调用cpp文件
- 报错:Received fatal alert:protocol_version
- 解决:
- 在matlab安装mingw(c++编译器)
- 参考:
https://ww2.mathworks.cn/support/bugreports/1741173;
https://ww2.mathworks.cn/matlabcentral/answers/385789-why-do-i-encounter-a-received-fatal-alert-protocol_version-when-installing-a-support-package-in-ma
- 编译这个文件 > mex -g xx.cpp
说明:2017版的matlab已经解决了这个bug。
3 后记
没有