在Windows上使用Anaconda安装和运行Tensorflow-GPU

Requirements; Anaconda, A PC with Windows 10 OS, Internet connection and at least 1GB of data.

要求; Anaconda,具有Windows 10操作系统,Internet连接和至少1GB数据的PC。

1.运行水蟒 (1. Run Anaconda)

If you do not have Anaconda installed, you can download it from here and install then search for Anaconda in the Windows search bar. Run the Navigator and Anaconda prompt.

如果您尚未安装Anaconda,则可以从此处下载并安装,然后在Windows搜索栏中搜索Anaconda。 运行导航器和Anaconda提示符。

Image for post

2.创建环境 (2. Create an Environment)

You can create a new environment by typing the following command on Anaconda Prompt.

您可以通过在Anaconda Prompt上键入以下命令来创建新环境。

conda create -n gputensorflow python=3.7

For the purpose of this article, the environment name is gputensorflow and we’re installing python version 3.7, you can choose any environment name.

就本文而言,环境名称为gputensorflow,并且我们正在安装python版本3.7 ,您可以选择任何环境名称。

3.激活环境 (3. Activate the Environment)

conda activate gputensorflow

4. Install the ipykernel

4. 安装ipykernel

To install the kernel, enter the following command;

要安装内核,请输入以下命令;

pip install ipykernel

Then:

然后:

python –m ipykernel install --user --name gputensorflow  --display-name “gputensorflow”

5. 安装Tensorflow-GPU (5. Installing Tensorflow-GPU)

conda install tensorflow-gpu

Anaconda installs Tensorflow-GPU and a number of libraries. This may take a longer time than other installations.

Anaconda安装了Tensorflow-GPU和许多库。 与其他安装相比,这可能需要更长的时间。

Image for post

6.重新启动PC (可选) (6. Restart your PC (optional))

7.运行Anaconda和TensorFlow环境 (7. Run Anaconda and the TensorFlow environment)

When you open the Anaconda Navigator, click on the arrow beside the “Applications on” and click on your environment.

当您打开Anaconda Navigator时,单击“ Applications on”旁边的箭头,然后单击您的环境。

Image for post

8.启动Jupyter Notebook (8. Launch Jupyter Notebook)

You should have something like this 👇

你应该有这样的东西👇

Image for post

There you go, you can now create your Neural Networks and other stuff with TensorFlow. You can also install other libraries.

到这里,您现在可以使用TensorFlow创建神经网络和其他东西。 您也可以安装其他库。

I hope the article was helpful, If you encountered any challenge while following the steps, you can send a Direct Message to me on Twitter or drop a comment in the Response section.

希望本文对您有所帮助,如果在执行这些步骤时遇到任何挑战,您可以在Twitter上向我发送直接消息或在“响应”部分中发表评论。

翻译自: https://medium.com/datadriveninvestor/installing-tensorflow-gpu-using-anaconda-on-windows-ac23b66d05f1

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值