如何使用Anaconda Navigator安装TensorFlow和Keras —不使用命令行

Say no to pip install in the command line! Here's an alternative way to install TensorFlow on your local machine in 3 steps.

对命令行说不点安装! 这是通过3个步骤在本地计算机上安装TensorFlow的另一种方法。

我为什么要写这个? (Why am I writing this?)

I played around with pip install with multiple configurations for several hours, trying to figure how to properly set my python environment for TensorFlow and Keras.

我玩了几个小时的具有多种配置的pip install,试图弄清楚如何为TensorFlow和Keras正确设置我的python环境。

在我放弃之前,我发现了这个…… (Just before I gave up, I found this…)

One key benefit of installing TensorFlow using conda rather than pip is a result of the conda package management system. When TensorFlow is installed using conda, conda installs all the necessary and compatible dependencies for the packages as well.

使用conda而不是pip安装TensorFlow的一个主要好处是conda软件包管理系统的结果。 当使用conda安装TensorFlow时,conda还将为软件包安装所有必要且兼容的依赖项。

This article will walk you through the process how to install TensorFlow and Keras by using the GUI version of Anaconda. I assume you have downloaded and installed Anaconda Navigator already.

本文将引导您完成如何使用Anaconda的GUI版本安装TensorFlow和Keras的过程。 我假设您已经下载并安装了Anaconda Navigator

让我们开始吧! (Let’s get started!)

  1. Launch Anaconda Navigator. Go to the Environments tab and click ‘Create’.

    启动Anaconda Navigator。 转到环境选项卡,然后单击“创建”。

2. Input a new environment name - I put ‘tensorflow_env’. Make sure to select Python 3.6 here! Then ‘Create’, this may take few minutes.

2.输入一个新的环境名称-我输入了“ tensorflow_env”。 确保在此处选择Python 3.6! 然后“创建”,这可能需要几分钟。

3. In your new ‘tensorflow_env’ environment, select ‘Not installed’, and type in ‘tensorflow’. Then, tick ‘tensorflow’ and ‘Apply’. The pop-up window will appear, go ahead and apply. This may take several minutes.

3.在新的“ tensorflow_env”环境中,选择“未安装”,然后键入“ tensorflow”。 然后,勾选“ tensorflow”和“应用”。 将会出现弹出窗口,继续并应用。 这可能会需要几分钟。

Do the same for ‘keras’.

对“ keras”执行相同的操作。

Check your installation by importing the packages. If everything is okay, the command will return nothing. If the installation was unsuccessful, you will get an error.

通过导入软件包检查安装。 如果一切正常,该命令将不返回任何内容。 如果安装不成功,则会出现错误。

And…Ta-da! It’s done! You can follow this article to test your newly installed packages :)

还有……塔达! 完成! 您可以按照本文测试新安装的软件包:)



Thank you for reading. Please give it a try, and let me know your feedback!

感谢您的阅读。 请尝试一下,让我知道您的反馈!

Consider following me on GitHub, Medium, and Twitter to get more articles and tutorials on your feed if you like what I did. :)

如果您喜欢我的工作,可以考虑在GitHubMediumTwitter上关注我,以在您的供稿上获取更多文章和教程。 :)

翻译自: https://www.freecodecamp.org/news/install-tensorflow-and-keras-using-anaconda-navigator-without-command-line/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值