tensorflow神奇问题
运行tensorflow程序时,遇到了各种奇葩的问题,比如:
1、Import Error: DLL load failed: The specified module could not be found
2、Importing the multiarray numpy extension module failed
3、ImportError: Importing the multiarray numpy extension module failed. Most likely you are trying to import a failed build of numpy. If you're working with a numpy git repo, try `git clean -xdf` (removes all files not under version control). Otherwise reinstall numpy. Original error was: DLL load failed:
4、AttributeError: module 'numpy' has no attribute 'version'
5、numpy.core.multiarray failed to import
等等,一系列神奇的问题,查找百度,stackflow等,很多解决方案,有些是要下载文件,有些要删除问题,有些要重装等等;
但是,首先要做的是按照问题提示,先升级报错的包(在anaconda prompt下),一般都是版本不匹配问题,一个个升级,问题一个个就解决掉了,
最不提倡的是上来就卸载,重装等,会破坏一些一些重要文件,引入其他问题
主要在anaconda prompt下执行:
1、conda install xxx
2、conda upgrade xxx