![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
问题总结
++加油呀
这个作者很懒,什么都没留下…
展开
-
问题总结:ERROR: Could not find a version that satisfies the requirement transformers
问题描述:安装trantsformers时出现以下问题,按照网上的方法改了很久还是不行,后来终于改好了(base) root@adbb5f70256b:~# pip install trantsformersWARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationErro原创 2021-12-09 17:08:58 · 8038 阅读 · 8 评论 -
问题解决:RuntimeError: CUDA error: out of memory
错误:RuntimeError: CUDA error: out of memory原因:网络预训练模型与Pytorch版本不匹配参考:https://blog.csdn.net/eefresher/article/details/99979056?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.no_search_link&depth_1-utm_source=distr原创 2021-09-29 17:28:44 · 393 阅读 · 0 评论 -
问题总结:_pickle.UnpicklingError: invalid load key, ‘{‘.
记录改错过程原代码 with open(cached_path, "rb") as reader: features = pickle.loads(reader)运行报错_pickle.UnpicklingError: invalid load key, ‘{’.改为: with open(cached_path, "rb") as reader: features = pickle.loads(reader).load和loads的区原创 2021-09-29 16:41:17 · 40265 阅读 · 17 评论 -
exit(0) name ‘exit‘ is not defined
@staticmethod def read_nq_features(cached_path, is_training=False): if not os.path.exists(cached_path): logging.info("{} doesn't exists.".format(cached_path)) exit(0) logging.info("Reading features from {}.".for.原创 2021-09-27 16:13:25 · 355 阅读 · 0 评论 -
问题总结:python3已经安装相关库或包,pycharm依旧报错ModuleNotFoundError: No module named ‘XXX‘
问题这里引用ModuleNotFoundError: No module named ‘pytorch_pretrained_bert’问题原因第一反应是安装pytorch_pretrained_bert包 pip install pytorch_pretrained_bert==0.6.1 -i https://pypi.tuna.tsinghua.edu.cn/simple显示安装完成Requirement already satisfied: pytorch_pretrained_b原创 2021-09-14 14:51:51 · 2000 阅读 · 0 评论 -
问题总结:/root/miniconda3/envs/python1/bin/python: bad interpreter: Permission denied
问题Linux系统,用pip 下载包时出现 错误的解释器:权限被拒绝问题原因之前不小心将/root/miniconda3/envs/python1/bin/路径下的python文件剪切到其他位置,放回来后出现python文件没有权限的问题解决方案(1)进入文件目录cd /root/miniconda3/envs/python1/bin(2)赋予执行权限 chmod 766 ./*...原创 2021-09-14 09:53:27 · 3765 阅读 · 0 评论 -
RuntimeError: NCCL error in:XXX,unhandled system error, NCCL version 2.7.8
1.问题pytorch 分布式训练中遇到这个问题,2.原因大概是没有启动并行运算???(有懂得大神请指教)3.解决方案(1)首先看一下服务器GPU相关信息进入pytorch终端(Terminal)输入代码查看pythontorch.cuda.is_available()#查看cuda是否可用;torch.cuda.device_count()#查看gpu数量;torch.cuda.get_device_name(0)#查看gpu名字,设备索引默认从0开始;torch.cuda.cu原创 2021-08-30 16:51:17 · 10274 阅读 · 0 评论 -
问题总结:W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library
1.问题W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library ‘libcudart.so.11.0’; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory2.错误原因tensorflow 的版本要与cudn相匹配(匹配关系可以去官网查)我的:原创 2021-08-29 18:33:38 · 29918 阅读 · 3 评论 -
问题总结:create_examples.py: error: the following arguments are required: --vocab_file
原运行命令:python src_nq_memory/create_examples.py --input_pattern "./natural_questions/v1.0/train/nq-train-*.jsonl.gz" \ --vocab_file ./bert-base-uncased-vocab.txt \ --do_lower_case \ --output_dir ./natural_questions/nq_0.03/ \ --num_threads 24 --includ原创 2021-08-29 16:44:05 · 472 阅读 · 0 评论 -
问题总结:ModuleNotFoundError: No module named ‘spacy‘
1.问题from spacy.lang.en import English2.解决方法pip install spacy -i https://pypi.tuna.tsinghua.edu.cn/simple原创 2021-08-27 18:43:49 · 4461 阅读 · 0 评论 -
问题总结:ModuleNotFoundError: No module named ‘tensorflow‘
1.问题import tensorflow as tfModuleNotFoundError: No module named ‘tensorflow’2.解决方案pip install tensorflow仅记录自己项目中的错误,对于其他项目不具有参考价值原创 2021-08-27 16:46:48 · 9787 阅读 · 0 评论 -
问题总结python: can‘t open file ‘XXX‘: [Errno 2] No such file or directory
在Linux系统跑程序时,出现错误python: can’t open file ‘src_nq/create_examples.py’: [Errno 2] No such file or directory可能的原因及解决方法:1.在该路径下没有对应文件解决方法:查看目录结构,发现该文件存在或者在终端进入该文件所在文件夹,输入dir查看该文件夹下包含的文件,发现要运行的文件确实存在,这个原因排除。2.Python命令中空格需要为英文状态运行代码中的空格应该为英文状态python原创 2021-08-23 11:29:25 · 110682 阅读 · 6 评论