首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在注册表中定位(Windows 10)

无法在注册表中定位(Windows 10)
EN

Stack Overflow用户
提问于 2021-11-19 19:32:56
回答 1查看 44关注 0票数 0

我在Anaconda环境中将AnyPyTools作为包运行。当我试图运行AnyPyTools的第一个命令“入门”jupyter笔记本时,我会收到一个错误,上面写着“无法在注册表中定位AnyBody”。对如何处理这件事有什么想法吗?

我试着卸载&重新安装AnyPyTools,其间关闭,但仍然会出现相同的错误。另外,我找不到要安装的单独的AnyBody python包。

版本信息:

3.8.12.final.0

  • anypytools:

  • conda版本: 4.10.3 conda-build版本: 3.21.6

  • python版本:
  • = 1.7.5 build=py38haa244fe_1
  • 10 version = 10.0.18363 Build = 18363

代码

(来自http://localhost:8888/notebooks/01_Getting_started_with_anypytools.ipynb)

代码语言:javascript
复制
from anypytools import AnyPyProcess 
    app = AnyPyProcess()

错误消息:

代码语言:javascript
复制
 OSError: Could not locate AnyBody in registry

追踪:

代码语言:javascript
复制
---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
~\Anaconda3\lib\site-packages\anypytools\tools.py in get_anybodycon_path()
    461     try:
--> 462         abpath = winreg.QueryValue(
    463             winreg.HKEY_CLASSES_ROOT, "AnyBody.AnyScript\\shell\\open\\command"

FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

OSError                                   Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_11000/586603320.py in <module>
      1 from anypytools import AnyPyProcess
----> 2 app = AnyPyProcess()

~\Anaconda3\lib\site-packages\anypytools\abcutils.py in __init__(self, num_processes, anybodycon_path, timeout, silent, ignore_errors, warnings_to_include, fatal_warnings, return_task_info, keep_logfiles, logfile_prefix, python_env, debug_mode, use_gui, priority, **kwargs)
    537 
    538         if anybodycon_path is None:
--> 539             anybodycon_path = get_anybodycon_path()
    540         anybodycon_path = Path(anybodycon_path)
    541         if use_gui:

~\Anaconda3\lib\site-packages\anypytools\tools.py in get_anybodycon_path()
    464         )
    465     except WindowsError:
--> 466         raise WindowsError("Could not locate AnyBody in registry")
    467     abpath = abpath.rsplit(" ", 1)[0].strip('"')
    468     abpath = os.path.join(os.path.dirname(abpath), "AnyBodyCon.exe")

OSError: Could not locate AnyBody in registry
EN

回答 1

Stack Overflow用户

发布于 2021-11-19 21:51:23

答案是它不起作用,因为它需要安装任何需要付费许可的软件。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70040053

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档