gpt4 book ai didi

pythonnet clr 在 jupyter notebook 中无法识别

转载 作者:太空宇宙 更新时间:2023-11-04 02:08:05 25 4
gpt4 key购买 nike

我已经安装了 pythonnet 来为特定的 API 使用 clr 包,它只适用于 python 中的 clr。尽管在我的 python 脚本(使用命令或常规 .py 文件)中它可以正常工作,但在 jupyter notebook 中,import clr 给出了这个错误,ModuleNotFoundError: No module named 'clr'。知道如何解决这个问题吗?

最佳答案

这是一个简单的建议:比较两种情况下的 sys.path 并查看差异。您在 jupyter 中的 ipython 内核可能在与正常 python 进程不同的目录中搜索。

关于pythonnet clr 在 jupyter notebook 中无法识别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54206227/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com