tensorflow-无法从Anaconda安装tensorflow [英] tensorflow - cannot install tensorflow from Anaconda
问题描述
我正在尝试通过两种方法访问tensorflow,但都失败了:
I am trying to access tensorflow from two ways, both of which are failing:
-
已安装Anaconda(Windows 32位Python 3.6).然后,使用Python 3.6(也尝试使用3.5)和Tensorflow创建一个conda环境.然后,我打开了Spyder桌面应用程序.在此Spyder中,张量流不起作用(例如,``由于tf导入tensorflow''不起作用).
Installed Anaconda (Windows 32 bit Python 3.6). Then, created a conda environment with Python 3.6 (also tried with 3.5) and Tensorflow. Then, I opened Spyder desktop app. In this Spyder, the tensorflow is not working (e.g. 'import tensorflow as tf' is not working).
在Anaconda Navigator中,使用Python 3.6创建了一个环境(使用GUI).然后,我过滤了未安装"软件包,并搜索了"tensorflow".我找不到任何相关的tensorflor程序包.我所能找到的只是与我无关的"r-tensorflow".
From Anaconda Navigator, created an environment (using the GUI), with Python 3.6. Then, I filtered the "Not installed" packages, and searched for "tensorflow". I couldn't find any relevant tensorflor package. All I could find is "r-tensorflow" which is not relevant for me.
所附图片描述了第二个问题.
The attached image describes the 2nd problem.
有人可以帮忙吗?
推荐答案
打开终端,然后输入:
conda update conda
安装完成后,输入:
conda install tensorflow
这将需要一些时间,具体取决于您的互联网速度.
It will take some time based on your internet speed.
安装后,打开Anaconda-> Spyder/Jupyter
After installing, open Anaconda -> Spyder/Jupyter
import tensorflow as ts
这篇关于tensorflow-无法从Anaconda安装tensorflow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!