tensorflow安装出现numpy version问题

报错:

ImportError: Something is wrong with the numpy installation. While importing we detected an older version of numpy in ['C:\\Users\\Administrator\\Anaconda3\\lib\\site-packages\\numpy']. One method of fixing this is to repeatedly uninstall numpy until none is found, then reinstall this version.

 报错是因为tensorflow和opencv有依赖关系,numpy版本没有更新,导致出错。
用pip3 install -U numpy尝试升级了一下numpy ,结果升级成功,但程序还是报错。用pip3 list指令查看安装的所有包,numpy的版本确实最新版本。

最后卸载numpy版本,重新安装:

结果不报错,tensorflow安装成功,问题解决。

猜你喜欢

转载自blog.csdn.net/zqzq19950725/article/details/88888603
今日推荐