在python中pip安装boto3
  TnD0WQEygW8e 2023年11月14日 21 0

安装:

https://aka.ms/vs/16/release/vc_redist.x64.exe安装之后重启。

 

pip install scikit-learn -i https://pypi.tuna.tsinghua.edu.cn/simple

 

如何在python中pip安装boto3
 
在python目录cmd下输入:
pip install botocore -i pip install boto3  -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install boto3 -i pip install boto3  -i https://pypi.tuna.tsinghua.edu.cn/simple

 

导入成功:

在python中pip安装boto3_python

 运行错误:

E:\_p-PyTorch> python pretrain_run.py --model bert
Traceback (most recent call last):
  File "pretrain_run.py", line 5, in <module>
    from pretrain_eval import train, init_network
  File "E:\_-PyTorch\pretrain_eval.py", line 6, in <module>
    from sklearn import metrics
ModuleNotFoundError: No module named 'sklearn'

 

PS E:\_prjct\Chinese-Text-Classification-PyTorch> E:\Eprogramfiles\Anaconda3\python.exe pretrain_run.py -
-model bert
Microsoft Visual C++ Redistributable is not installed, this may lead to the DLL load failure.
                 It can be downloaded at https://aka.ms/vs/16/release/vc_redist.x64.exe
Model name './bert_pretrain' was not found in model name list (bert-base-uncased, bert-large-uncased, ber
t-base-cased, bert-large-cased, bert-base-multilingual-uncased, bert-base-multilingual-cased, bert-base-c
hinese). We assumed './bert_pretrain\vocab.txt' was a path or url but couldn't find any file associated t
o this path or url.
Loading data...
0it [00:00, ?it/s]
Traceback (most recent call last):
  File "pretrain_run.py", line 28, in <module>
    train_data, dev_data, test_data = build_dataset(config)
  File "E:\_prjct\Chinese-Text-Classification-PyTorch\pretrain_utils.py", line 36, in build_dataset      
    train = load_dataset(config.train_path, config.pad_size)
  File "E:\_prjct\Chinese-Text-Classification-PyTorch\pretrain_utils.py", line 20, in load_dataset       
    token = config.tokenizer.tokenize(content)
AttributeError: 'NoneType' object has no attribute 'tokenize'
PS E:\_prjct\Chinese-Text-Classification-PyTorch>

 



【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月14日 0

暂无评论

推荐阅读
TnD0WQEygW8e