解决了python版本各种包的问题,还是unsupported operand type(s) for +: 'NoneType' and 'float',哎。您说的运行程序 python main.py config.xml是什么意思呢?我用python.exe运行不了这个命令,pycharm运行main.py也会报错就是这个unsupported operand type(s) for +: 'NoneType' and 'float'。
我只是个小白,望您指点。
python环境3.7
报错信息
$ python main.py config.xml
Traceback (most recent call last):
File "main.py", line 13, in
reload(sys)
NameError: name 'reload' is not defined
File "D:\anaconda3\envs\env_name\lib\site-packages\matplotlib\colorbar.py", line 1197, in make_axes
cax.set_aspect(aspect, anchor=anchor, adjustable='box')
File "D:\anaconda3\envs\env_name\lib\site-packages\matplotlib\axes_base.py", line 1387, in set_aspect
self.set_anchor(anchor, share=share)
File "D:\anaconda3\envs\env_name\lib\site-packages\matplotlib\axes_base.py", line 1498, in set_anchor
if not (anchor in mtransforms.Bbox.coefs or len(anchor) == 2):