10.7- 的报错整理(与linux、python相关)
报错一:
conda: command not found 原因:因为~/.bashrc文件没有配置好 报错二:
报错:not writable 原因:不支持写入权限 解决: open (data_path,'w') 报错三:
报错:你需要来自 的权限才能对此文件夹进行更改。 解决:或许重启可以解决。 报错四:
报错:TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.py file…… 解决:
pip uninstall protobuf(注意尽量一句一句执行,不要一起全部复制粘贴执行,容易出错) pip install protobuf==3.20.1 报错五:
报错:The PyDev.Debugger requires Python 3.6 onwards to be run. 解决:扩展搜索python 然后卸载处的下拉框选择安装另一个版本,选择一个比较早期的版本 报错六:
报错:Building wheel for llvmlite (setup.py) ... error ERROR: Command errored out with exit status 1: 原因:安装librosa 需要安装对应的llvmlite python3.6对应给的是llvmlite==0.31.0 报错七:
发生异常: SystemExit 2 File "/home/wangshiyao/wangshiyao_space/exp4/samplernn-pytorch-master/train.py", line 360, in main(**vars(parser.parse_args())) 原因:将需要命令行输入的参数,由于要调试,将默认值设置在了code中,default 解决:parser中设置了required=Ture的,设置default之后,要把required去掉 报错八:
报错:torch.FloatTensor constructor received an invalid combination of arguments - got (int, int, numpy.int64), but expected one of: * no arguments * (int ...) didn't match because some of the arguments have invalid types: ([31;1mint[0m, [31;1mint[0m, [31;1mnumpy.int64[0m) * (torch.FloatTensor viewed_tensor) * (torch.Size size) * (torch.FloatStorage data) * (Sequence data) 解决:将所有设置的参数外加上int() 报错九:
报错:ValueError: too many values to unpack (expected 2) 原因:返回值个数不对应 解决:查看函数返回值个数 报错十:
报错:gpg: no valid OpenPGP data found. 原因:wai网网站访问不了 报错十一:
报错:copying between containers is not supported 原因:两个容器之间是无法直接传输,所以目前可行的方法是先将一个容器中的文件复制到宿主机,然后再从宿主机中复制到另一个容器 报错十二:
报错:python:error: import: command not found 解决:在第一行加上(一定是第一行):#!/usr/bin/python
相关阅读:
知识图谱应用---智慧医疗
PDF怎么翻译成中文?这些方法值得收藏
Mysql锁
突破自动化测试瓶颈!WEB自动化测试鼠标与键盘操作最佳实践分享
数据中台不是万能钥匙,企业需求才是数据中台建设的根本
【Spark 实战系列】sparkstreaming 任务出现堆积如何优化?(流量突然大增资源不够怎么办?)
mac 中配置idea自带maven环境变量
centos 项目运行环境搭建
1、计算机图形学——基础变换矩阵
RT-thread lts-v3.1.x版本,GD32F450以太网,上电之后有一定概率ping不通问题处理。
原文地址:https://blog.csdn.net/weixin_45647721/article/details/127532356