目录
模拟异常 TypeError: unsupported operand type(s) for -: 'str' and 'str'
模拟异常 TypeError: unsupported operand type(s) for /: 'str' and 'str'
mayavi安装报错:
pip install mayavi
报错了,
看到报错中有个提示:
Fallback spawn triggered. Please update distutils monkeypatch
模拟异常 TypeError: unsupported operand type(s) for -: 'str' and 'str'
if (default > rng[1]) and (default - rng[1]) < 2:
TypeError: unsupported operand type(s) for -: 'str' and 'str'
模拟异常 TypeError: unsupported operand type(s) for /: 'str' and 'str'
aa='ff'
bb='fxf'
ff=aa/bb
print(ff)
原因:数据类型不对,运算出错。
测试安装结果:
python 3.10 win11 ok:
pip install vtk
pip install mayavi
python 3.6版本报错
TypeError: unsupported operand type(s) for -: 'str' and 'str'