关于python里运行出现'module' object has no attribute 'xxxx'等问题解决方法

来源:互联网 发布:linux系统ping不通 编辑:程序博客网 时间:2024/06/07 03:20
本人在运行代码出错
 I= np.stack((R, G, B), 2)
报错为:'module' object has no attribute 'stack'
stack 是属于numpy里的一个模块,而且电脑里numpy已经安装,
解决方法为:直接更新下numpy,命令为
python -m pip install --upgrade pip numpy
之后运行正常0.0
阅读全文
0 0
原创粉丝点击