在Anaconda环境中安装TensorFlow+启动jupyter notebook

1.打开cmd,输入C:\Users\xy>conda create -n tensorflow python=3.7
这是在环境中创建了一个名为tensorflow的环境,具体会显示以下信息:

C:\Users\xy>conda create -n tensorflow python=3.7
Retrieving notices: ...working... done
Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful attempt using repodata from current_repodata.json, retrying with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 23.7.4
  latest version: 24.5.0

Please update conda by running

    $ conda update -n base -c defaults conda

Or to minimize the number of packages updated during conda update use

     conda install conda=24.5.0



## Package Plan ##

  environment location: D:\Anaconda3\envs\tensorflow

  added / updated specs:
    - python=3.7


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    ca-certificates-2024.7.2   |       haa95532_0         128 KB
    ------------------------------------------------------------
                                           Total:         128 KB

The following NEW packages will be INSTALLED:

  ca-certificates    pkgs/main/win-64::ca-certificates-2024.7.2-haa95532_0
  certifi            pkgs/main/win-64::certifi-2022.12.7-py37haa95532_0
  openssl            pkgs/main/win-64::openssl-1.1.1w-h2bbff1b_0
  pip                pkgs/main/win-64::pip-22.3.1-py37haa95532_0
  python             pkgs/main/win-64::python-3.7.16-h6244533_0
  setuptools         pkgs/main/win-64::setuptools-65.6.3-py37haa95532_0
  sqlite             pkgs/main/win-64::sqlite-3.45.3-h2bbff1b_0
  vc                 pkgs/main/win-64::vc-14.2-h2eaa2aa_4
  vs2015_runtime     pkgs/main/win-64::vs2015_runtime-14.29.30133-h43f2093_4
  wheel              pkgs/main/win-64::wheel-0.38.4-py37haa95532_0
  wincertstore       pkgs/main/win-64::wincertstore-0.2-py37haa95532_2


Proceed ([y]/n)? y


Downloading and Extracting Packages

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate tensorflow
#
# To deactivate an active environment, use
#
#     $ conda deactivate


在这里插入图片描述
出现下图信息则表示安装成功:在这里插入图片描述

2.激活tensorflow环境,输入:activate tensorflow
在这里插入图片描述
3.安装TensorFlow,输入:pip install tensorflow
在这里插入图片描述
在这里插入图片描述
4.使用conda命令查看是否安装成功,输入:conda info --envs
在这里插入图片描述
5.在该环境下启动jupyter notebook【前提是之前已经在anaconda中成功安装了jupyter notebook】,输入:jupyter notebook
在这里插入图片描述
在这里插入图片描述

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-13 15:42:04       67 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-13 15:42:04       71 阅读
  3. 在Django里面运行非项目文件

    2024-07-13 15:42:04       58 阅读
  4. Python语言-面向对象

    2024-07-13 15:42:04       69 阅读

热门阅读

  1. 开发指南048-前端模块版本

    2024-07-13 15:42:04       18 阅读
  2. AI工具网站

    2024-07-13 15:42:04       17 阅读
  3. 什么是ipc

    2024-07-13 15:42:04       22 阅读
  4. 红帽虚拟化REST API指导文档

    2024-07-13 15:42:04       22 阅读
  5. 层次分析法:matlab代码实现

    2024-07-13 15:42:04       20 阅读
  6. Tg机器人开发:实现自动化图片审核功能

    2024-07-13 15:42:04       18 阅读
  7. Mojo AI编程语言(三)数据结构:高效数据处理

    2024-07-13 15:42:04       22 阅读