Window10 + tensorflow 安装(解决Error importing tensorflow, unless you are using bazel...)
2017-03-26 15:14
721 查看
CPU模式tensorflow在window10上安装,虽然和别人的大同小异,但是,在安装过程中总是遇到一些问题,觉得还是记下来好一些:
Step1: python 官网下载python 3.5版本的exe安装包,安装过程中注意勾选将python路径添加到环境变量中;
Step2: 在cmd 中输入python 看能否显示python的版本信息,如果能够显示则说明正确安装,否则出错;
Step3: 由于python 3.5本身包含pip,只需要进行更新即可,更新方式如下:开始-> 运行-> cmd -> "python -m pip --upgrade pip" (无双引号);
Step4: 在cmd中输入"pip install tensorflow",然后等待安装即可,如果由于网络问题导致安装不成功,重新输入“pip install tensorflow”即可
注意: 我自己在安装的过程完成后,导入tensorflow时总是提示如下问题:
Error importing tensorflow. Unless you are using bazel.
you should not try to import tensorflow from its source directory;
please exit teh tensorflow source tree, and relaunch your python interpreter from there.
解决方法: 下载Windows 的 Microsoft Visual C++ 2015 redistributable update 3 64bit 安装即可
下载路径:https://www.microsoft.com/zh-cn/download/confirmation.aspx?id=53840
Step1: python 官网下载python 3.5版本的exe安装包,安装过程中注意勾选将python路径添加到环境变量中;
Step2: 在cmd 中输入python 看能否显示python的版本信息,如果能够显示则说明正确安装,否则出错;
Step3: 由于python 3.5本身包含pip,只需要进行更新即可,更新方式如下:开始-> 运行-> cmd -> "python -m pip --upgrade pip" (无双引号);
Step4: 在cmd中输入"pip install tensorflow",然后等待安装即可,如果由于网络问题导致安装不成功,重新输入“pip install tensorflow”即可
注意: 我自己在安装的过程完成后,导入tensorflow时总是提示如下问题:
Error importing tensorflow. Unless you are using bazel.
you should not try to import tensorflow from its source directory;
please exit teh tensorflow source tree, and relaunch your python interpreter from there.
解决方法: 下载Windows 的 Microsoft Visual C++ 2015 redistributable update 3 64bit 安装即可
下载路径:https://www.microsoft.com/zh-cn/download/confirmation.aspx?id=53840
相关文章推荐
- tensorflow windows安装 Error import tensorflow错误解决方法
- tensorFlow解决问题ImportError: No module named 'tensorflow.python.pywrap_tensorflow_internal'
- mysql错误:ERROR 1175: You are using safe update mode 解决方法
- window10 安装出现the error code is 2503错误的解决方法
- NDK You are using a non-Cygwin compatible Make program. 解决方法
- 解决Tensorflow源码安装的之后TensorBoard 无法使用的问题
- mysql解决ERROR Code 1175 : You are using safe update mode and you tried to update a tab
- mysql安装过程中出现错误ERROR 1820 (HY000): You must SET PASSWORD before executing this statement解决
- 【tensorTensorFlow学习笔记】Mac+Linux虚拟机安装TensorFlow
- ubuntu安装tensorflow时使用pip安装时出现SSLError[已解决]
- 如何解决MySQL Workbench中的错误Error Code: 1175. You are using safe update mode and you tried to update
- Mysql update error: Error Code: 1175. You are using safe update mode and you tried to update a table
- Tensorflow+cuda+cudnn+window+Python之window下安装TensorFlow
- 关于YumRepo Error: All mirror URLs are not using ftp......报错的解决方法
- yum 安装mysql5.7 是 出现无法登陆问题以及mysql error You must reset your password using ALTER USER statement befor
- MYSQL Error Code: 1175 You are using safe update mode...解决方法
- YumRepo Error: All mirror URLs are not using问题解决
- Python中pip版本升级error:You are using pip version 7.1.2, however version 8.1.1 is available.
- 解决:Error:Connection timed out: connect. If you are behind an HTTP proxy, please