- 博客(10)
- 收藏
- 关注
原创 mac安装R包spdep报错ld: cannot find -lgfortran
参考stackoverflow的解决方法https://stackoverflow.com/questions/6302209/building-r-package-and-error-ld-cannot-find-lgfortran首先用homebrew确认gcc, g++, gfortran的版本,然后在路径~/.R/添加Makevars这个文件名的文件(不要带尾缀)文件内容:VER=-11CC=gcc$(VER)CXX=g++$(VER)CFLAGS=-mtune=native -g -O
2022-03-30 18:57:59
658
原创 Dash 无法导入,今日最好笑bug
Dash was not successfully imported. Make sure you don't have a file named'dash.py' in your current directory.查了一下Stack Overflow,据说是因为文件名叫test.py所以报错了,文件名改成test123.py就正常跑了顺着摸到dash官方的issue,貌似是预留的声明里有个test,草...
2020-08-20 16:00:59
615
1
原创 R载入openxlsx包出错:cannot have attributes on a CHARSXP
环境:R 4.0.2, Pycharm R 插件报错:在载入ggplot2和RColorBrewer后载入openxlsx时报错cannot have attributes on a CHARSXP解决:重新加载R后首先加载openxlsx,再加载ggplot2和RColorBrewer
2020-08-08 16:52:39
1067
原创 获取字母在字母表中的序列
def get_alphabet_index(char): index = ord('B')-64 return index
2020-07-23 19:06:49
396
原创 由于连接太慢导致的pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool
改用以下命令行pip --default-timeout=100 install 库名称 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com快到震撼我妈…但是我挺好奇这个域名是啥
2020-07-21 20:43:33
423
1
原创 R Mediation WARNING
在使用R的mediation包时提醒:Warning message:In mediate(b, c, sims = 1000, treat = "x", : treatment and control values do not match factor levels; using 1 and 2 as control and treatment, respectively查了一下,在这个链接 里有人回应,是因为你的x变量的取值个数大于2(即非二分变量),同时代码并未声明对哪个特定取值进行分
2020-07-15 23:35:08
1840
6
原创 Pycharm登录Github报错: Invalid authentication data. Connection refused.
一开始是从pycharm的这个地方进入就可以直接登录github,然后我使用了账号id+密码报错拒绝连接然后我就想是不是邮箱登录或者域名登录,查了一圈发现就是用户名登录,没错紧接着我看他的登录窗口里写了token登录,我就去github的settings>developer settings里创建了一个token,结果还报错拒绝连接最后我搜到这篇文章:https://www.jianshu.com/p/5d2a0ab59226然后我把网关了重新开…登上了…...
2020-07-10 21:47:45
1880
原创 Python: missing 1 required positional argument
但使用报错方法时argument数是对的:在创建object时没加()
2020-07-04 12:20:18
1300
原创 使用pycorrector时ssl.SSLCertVerificationError
使用pycorrector时ssl.SSLCertVerificationError报错:Downloading data from https://deepspeech.bj.bcebos.com/zh_lm/zh_giga.no_cna_cmn.prune01244.klmTraceback (most recent call last):File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/re
2020-07-03 09:24:01
431
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人