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
    • 最新
    • 标签
主页 / user-1695392

BsAxUbx5KoQDEpCAqSffwGy554PSah's questions

Martin Hope
BsAxUbx5KoQDEpCAqSffwGy554PSah
Asked: 2024-09-20 00:39:48 +0800 CST

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

  • 4

我有哪些软件?

  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 个回答
  • 19 Views
Martin Hope
BsAxUbx5KoQDEpCAqSffwGy554PSah
Asked: 2024-09-18 02:09:02 +0800 CST

AppData/Roaming。移动。错误。文件名“长度超过 256 个字符”

  • 9

我想要做什么?

我正在将文件夹的“位置”更改AppData/Roaming为同一磁盘的另一个分区,如下面的屏幕截图所示。

更改文件夹位置

屏幕截图以蓝色背景显示目标文件夹的目标地址。窗口为“漫游属性”,所选选项卡为“位置”。

AppData 占用了太多空间,我的“Windows 10”分区几乎没有空间了,如下面的屏幕截图所示。

设备和单位

屏幕截图显示“设备和单位”。

但实际上发生了什么?

我得到的是下面屏幕截图中显示的错误。

文件夹无法移至此处

它的标题是:“无法将文件夹移动到此处”,并继续说道:

“无法将文件从 X 复制到 Y 。当 origin 或 destiny 文件夹中的一个或多个文件的文件名长度超过 256 个字符时,就会发生这种情况。该操作已被用户取消。”

我已尝试做过什么了?

  1. 在 SuperUser 上找不到答案;
  2. 我试图将 LongPathsEnabled 更改为 1,但它已经是 1;
  3. 我在做自己的实验时注意到,AppData/Roaming/Microsoft子文件夹无法重命名、删除或移动,这可能是导致错误的原因。即使使用提升权限,我也无法对其进行任何操作cmd。因此,它可能阻止了文件夹新地址的设置AppData/Roaming。

问题:

如何解决 256 个字符的错误,以便正确移动AppData/Roaming文件夹?

windows-10
  • 2 个回答
  • 596 Views
Martin Hope
BsAxUbx5KoQDEpCAqSffwGy554PSah
Asked: 2024-04-23 03:29:09 +0800 CST

邮件合并弄乱小数位

  • 5

当使用 Excel 电子表格作为 Word 邮件合并功能的输入时,小数位会变得混乱:

  • 8,1 变为 8,0999999999999996
  • 7,0 变成 7

(逗号是小数分隔符,点是千位分隔符)

问:如何防止这种情况再次发生?手动修复这些错误是很烦人的!

microsoft-excel
  • 1 个回答
  • 40 Views
Martin Hope
BsAxUbx5KoQDEpCAqSffwGy554PSah
Asked: 2022-08-23 11:02:56 +0800 CST

无法安装 Windows 7 Service Pack 1:ERROR_SXS_ASSEMBLY_MISSING(0x80073701)

  • 2

如果出现以下错误,如何安装 Windows 7(确切地说是 6.1)Service Pack 1 (KB976932):

ERROR_SXS_ASSEMBLY_MISSING(0x80073701)

“系统更新准备工具,2014 年 10 月”(KB947821)也安装了,没有任何区别。

编辑1:这些命令已经运行并且没有解决问题:

  • sfc /scannow
  • chkdsk /f /v /r /b

这些文章中指出的解决方案并没有解决问题,需要使用系统还原来恢复:

  1. https://answers.microsoft.com/pt-br/windows/forum/all/service-pack-1-e-est%c3%a1-sempre-a-dar-erro/3628c0de-0b49-e011-8dfc- 68b599b31bf5
  2. https://answers.microsoft.com/pt-br/windows/forum/all/comandos-dism-funcionam-no-windows-7/9cf33ef4-4716-4bc4-b1c2-f5b19bc1c889

编辑 2:按照从 Microsoft 下载中心安装 Windows 7 SP1 [...] 之前要遵循的步骤的说明进行操作:

  1. 窗口已激活;
  2. 激活是原创的;
  3. MalwareBytes 4.3.0 未发现恶意软件;
  4. 反恶意软件已卸载;
  5. 确认已安装 KB2454826、KB2534366 和 KB2533552;

编辑 3:手动卸载了我可以删除的所有更新,只留下无法删除的更新:

  1. KB976902;
  2. KB2533552;
  3. KB2977759;
  4. KB3020369。

然后,执行以下命令:

  1. 净停止 wuauserv
  2. cd %systemroot%
  3. ren SoftwareDistribution SoftwareDistribution.old
  4. 净启动 wuauserv

这也没有帮助。

windows-7 windows-update
  • 1 个回答
  • 196 Views
Martin Hope
BsAxUbx5KoQDEpCAqSffwGy554PSah
Asked: 2022-07-18 07:38:06 +0800 CST

Windows 7 - 如何录制 Google 会议音频?

  • 3

我正在通过 Google Meet 进行心理治疗,并想记录这些会话以供以后研究。但谷歌不允许本地录制,除非您是邀请者并为高级帐户付费。不是这种情况。

那么,我如何将 PC 的麦克风和扬声器音频录制在同一个文件中,而无需通过使用第二个麦克风来录制扬声器来降低音频质量,就像我将手机放在房间和录音通过它?

windows-7 audio
  • 1 个回答
  • 45 Views
Martin Hope
BsAxUbx5KoQDEpCAqSffwGy554PSah
Asked: 2022-05-25 09:25:53 +0800 CST

Clonezilla:“GPT 和 MBR 分区不匹配”。GPT 删除使系统无法启动

  • 5
  1. 在拇指驱动器上使用 Clonezilla 创建系统映像,以便从中克隆磁盘;
  2. Clonezilla 抛出错误:“mismatched GPT and MBR partition”并拒绝继续;
  3. 搜索 SuperUser 以获取有关如何继续的答案,发现Clonezilla 克隆失败,GPT 和 MBR 分区不匹配;
  4. 相信那里的答复,我应该删除 GPT 分区以结束冲突;
  5. 做了它,才发现磁盘现在无法启动。无法进入 Windows 10 和 Ubuntu 22.04。屏幕上只有一个闪烁的光标,没有错误信息,磁盘读取 LED 非常快地闪烁一次并关闭。

如何修复此磁盘以便能够重试克隆它?克隆无法启动的磁盘是没有用的。

Byt 使用 Clonezilla shell (Linux) 我可以收集这些信息:

猫 /proc/partitions:

major minor #blocks     name
8        0  468851544   sda
8        1      51200   sda1
8        2  156231680   sda2
8        3  156282880   sda3
8        4  156283203   sda4
8       16    7818152   sdb
8       17    7817128   sdb1
7        0     273516   loop0

须藤 fdisk -l /dev/sda:

Disk /dev/sda                   : 447.13GiB, 480103981056 bytes, 937703088 sectors
Disk model                      : ADATA SU630
Units                           : sectors of 1 * 512 = 512 bytes
Sector size (logical/physical)  : 512 bytes / 512 bytes
I/O size (minimum/optimal)      : 512 bytes/ 512 bytes
Disklabel type                  : dos
Disk identifier                 : 0xa890d888

须藤分开 -l:

Model                           : ATA ADATA SU630 (scsi)
Disk /dev/sda                   : 480GB
Sector size (logical/physical)  : 512B/512B
Partition table                 : msdos
Disk Flags                      :

Number  Start   End Size    Type    File system     Flags
1       1049kB  53.5MB      52.4MB  primary ntfs    boot
2       53.5MB  160GB       160GB   primary ntfs
3       160GB   320GB       160GB   primary ntfs
4       320GB   480GB       160GB   primary ext4

须藤 gdisk -l /dev/sda:

GPT fdisk (gdisk) version 1.0.8

Partition table scan:
    MBR: MBR only
    BSD: not present
    APM: not present
    GPT: not present

***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. 
***************************************************************

Disk                            : /dev/sda: 937703088 sectors, 447.1 GiB
Model                           : ADATA SU630
Sector size (logical/physical)  : 512 bytes / 512 bytes
Disk identifier (GUID)          : BC24557A-DABA-41A5-BAF3-318AA6D37C5C
Partition table holds up to     : 128 entries
Main partition table begins at  : sector 2 
Main partition table begins at  : ends at sector 33
First usable sector is          : 34
Last usable sector is           : 937703054
Partitions will be aligned on   : 2048-sector boundaries
Total free space is             : 5094 sectors (2.5MiB)

Number  Start (sector)  End (sector)    Size    Code    Name
1            2048          104447   50.0MiB     0700    Microsoft basic data
2          104448       312567807   149.0GiB    0700    Microsoft basic data
3       312567808       625133567   149.0GiB    0700    Microsoft basic data
4       625133568       937699974   149.0GiB    8300    Linux file system
boot multi-boot
  • 2 个回答
  • 439 Views

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