AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题 / 1856271
Accepted
BsAxUbx5KoQDEpCAqSffwGy554PSah
BsAxUbx5KoQDEpCAqSffwGy554PSah
Asked: 2024-09-20 00:39:48 +0800 CST2024-09-20 00:39:48 +0800 CST 2024-09-20 00:39:48 +0800 CST

Windows 10 + MiniConda + Spyder + TensorFlow。如何让它们协同工作?

  • 772

我有哪些软件?

  1. Windows 10 22H2 19045.4894;
  2. Miniconda3 py312_24.7.1-0(Python 3.12.4 64位);
  3. Spyder 独立版 6.0.0。

我需要什么软件?

  1. TensorFlow。

问题:

如何在 Windows 10 上创建一个可以同时容纳两者的 Condatensorflow环境spyder-kernels=3.0?

到目前为止我尝试过什么?

首次尝试创建环境:

我试过了conda create -n tf tensorflow spyder spyder-kernels。根据,这导致安装了以下软件包conda list:

  1. python版本:3.7.12 构建:h900ac77_100_cpython 频道:conda-forge;
  2. spyder版本:5.3.3 构建:py37h03978a9_0 频道:conda-forge;
  3. spyder-kernels版本:2.3.3 构建:py37h03978a9_0 频道:conda-forge;
  4. tensorflow版本:1.14.0 构建:h1f41ff6_0 频道:conda-forge。

这不满足 Spyder 6.0.0 的要求。当我打开它时,我在 IDE 的控制台中收到一个错误:

启动内核时发生错误

Python 环境或安装,其解释器位于

C:\Users\username\.conda\envs\tf\python.exe

没有安装spyder‑kernels版本>=3.0.0,<3.1.0。如果没有此模块和特定版本,Spyder 就无法为您创建控制台。

您可以通过激活您的环境(如果需要)然后在系统终端中运行来安装它:

conda install spyder-kernels=3.0

或者

pip install spyder-kernels==3.0.*

按照建议做并不能解决我的问题。相反,它让我陷入了依赖地狱:

conda install spyder-kernels=3.0
Channels:
 - conda-forge
 - defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: - warning  libmamba Added empty dependency for problem type SOLVER_RULE_UPDATE
failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - nothing provides _python_rc needed by python-3.12.0rc3-rc3_h2628c8c_1_cpython

Could not solve for environment specs
The following packages are incompatible
├─ pin-1 is installable and it requires
│  └─ python 3.7.* , which can be installed;
└─ spyder-kernels 3.0**  is not installable because there are no viable options
   ├─ spyder-kernels 3.0.0 would require
   │  └─ python >=3.8  but there are no viable options
   │     ├─ python [3.10.0|3.10.1|...|3.9.9] conflicts with any installable versions previously reported;
   │     └─ python [3.12.0rc3|3.13.0rc1|3.13.0rc2] would require
   │        └─ _python_rc, which does not exist (perhaps a missing channel);
   └─ spyder-kernels 3.0.0 would require
      └─ __unix, which is missing on the system.

我已经向超级用户寻求我的问题的答案,但没有找到任何解决方案。

按照 Ramhound 的建议去做,conda install python=3.8只会让 DEPENDENCY HELL 变得更大。

windows-10
  • 1 1 个回答
  • 19 Views

1 个回答

  • Voted
  1. Best Answer
    BsAxUbx5KoQDEpCAqSffwGy554PSah
    2024-09-20T01:53:32+08:002024-09-20T01:53:32+08:00

    大体上是错误的版本:tensorflow=1.14.0。

    理想情况下应该是tensorflow=2.17.0。

    因此,不要:

    • conda create -n tf tensorflow spyder spyder-kernels

    做:

    • conda create -n tf2 tensorflow=2 spyder spyder-kernels=3.0.0

    这将安装:

    • tensorflow版本:2.10.0 构建:mkl_py310hd99672f_0
    • 0

相关问题

  • VMware Workstation USB 仲裁服务无法自动启动

  • 如何在域和 Linux 活动目录中启用指纹传感器

  • 资源管理器侧面板中的桌面外壳快捷方式

  • 为什么我不能将文件从 Android 发送到 Windows 10?

  • 在多个文件上打开方式?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve