【问题标题】:How to make default environment as conda environment in Spyder如何在 Spyder 中将默认环境设置为 conda 环境
【发布时间】:2019-05-28 07:02:23
【问题描述】:

我已经在 conda 环境中安装了 tensorflow,并通过安装 nb_conda 及其工作将其连接到 jupyter。但在 Spyder 中它仍然显示“未找到 tensorflow 模块名称”(可能 Spyder 未连接到 conda 环境)。我有两个问题:

1. How to enable Spyder to connect with conda environment so that I can run tensorflow

2. How to change default environment from "root" in conda prompt to my own created environment.

【问题讨论】:

    标签: tensorflow jupyter spyder conda


    【解决方案1】:

    Spyder 在安装它的 conda 环境中运行。通过 Anaconda 安装,您可以将其安装在基本解释器中。

    1. 对于 TensorFlow,创建一个新的 conda 环境。
    2. 在里面安装tensorflow。

      conda 安装张量流

    3. 在相同的环境中安装 Spyder。

      conda 安装 spyder

    或者,直接在基础解释器中安装 tensorflow。打开Anaconda提示符,输入,

    ( base ) $ conda install tensorflow
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-01-02
      • 1970-01-01
      • 2016-12-23
      • 1970-01-01
      • 2020-10-29
      • 2018-02-18
      • 2019-03-09
      相关资源
      最近更新 更多