简体   繁体   English

无法在 anaconda 上安装 tensorflow

[英]cannot install tensorflow on anaconda

i am trying to install tensorflow on anaconda我正在尝试在 anaconda 上安装 tensorflow

i tried conda install -c conda-forge tensorflow我试过conda install -c conda-forge tensorflow

but the installation stuck on Solving environment:但安装卡在Solving environment:

looked for a solution so someone suggested to install with debug寻找解决方案,因此有人建议使用调试进行安装

   conda install --debug -c conda-forge tensorflow

but it stopped on但它停了下来

DEBUG conda.resolve:filter_group(277): tensorboard: pruned from 47 -> 0

在此处输入图片说明

how to fix this?如何解决这个问题?

For python version 3.7, you need to first downgrade to 3.6 using conda install python=3.6 .对于 python 3.7 版,您需要先使用conda install python=3.6降级到conda install python=3.6 After that, the installation should work.之后,安装应该可以工作。 I had a similar problem recently.我最近遇到了类似的问题。

What it worked for me was: I uninstalled old versions of python and anaconda from my PC.它对我有用的是:我从我的电脑上卸载了旧版本的 python 和 anaconda。 I installed anaconda (Anaconda3-4.4.0-Windows-x86_64.sh) from here .我从这里安装了 anaconda (Anaconda3-4.4.0-Windows-x86_64.sh)。

I confirmed the conda installation by: conda -V我通过以下方式确认了 conda 安装: conda -V

It should give you: conda 4.3.21它应该给你: conda 4.3.21

I confirmed the python installation by: python -V我通过以下方式确认了 python 安装: python -V

It should give you: Python 3.6.1 :: Anaconda 4.4.0 (64-bit)它应该给你: Python 3.6.1 :: Anaconda 4.4.0 (64-bit)

Confirm the conda environment by typing on anaconda prompt:通过在 anaconda 提示符下键入来确认 conda 环境:

conda update conda康达更新康达

conda update anaconda康达更新蟒蛇

Next, I Installed theano by: conda install theano接下来,我通过以下方式安装了 theano:conda install theano

Next, I installed tensorflow by: conda install -c conda-forge tensorflow接下来,我通过以下方式安装了 tensorflow: conda install -c conda-forge tensorflow

Last, I installed keras by: pip install keras最后,我通过以下方式安装了 keras:pip install keras

This process takes some while.这个过程需要一些时间。

The latest Tensorflow 1.12 supports python 3.4,3.5 or 3.6.最新的 Tensorflow 1.12 支持 python 3.4、3.5 或 3.6。 python 3.7 is not supported.不支持 python 3.7。 you can download Anaconda 5.2.0 After the Anaconda is installed, you can use conda install tensorflow or conda install tensorflow-gpu to quickly install tensorflow可以下载Anaconda 5.2.0 安装Anaconda后,可以使用conda install tensorflow或者conda install tensorflow-gpu快速安装tensorflow

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM