python - 在以下路径中找不到名称为“base”的模板子目录:
问题描述
我正在尝试voila
在我的 mac M1 上运行 jupyter 笔记本。运行pip3 install voila
时,安装成功,但是运行时voila
出现以下错误:
Traceback (most recent call last):
File "/opt/homebrew/bin/voila", line 8, in <module>
sys.exit(main())
File "/opt/homebrew/lib/python3.9/site-packages/traitlets/config/application.py", line 845, in launch_instance
app.initialize(argv)
File "/opt/homebrew/lib/python3.9/site-packages/voila/app.py", line 370, in initialize
self.setup_template_dirs()
File "/opt/homebrew/lib/python3.9/site-packages/voila/app.py", line 376, in setup_template_dirs
self.template_paths = collect_template_paths(['voila', 'nbconvert'], template_name, prune=True)
File "/opt/homebrew/lib/python3.9/site-packages/voila/paths.py", line 24, in collect_template_paths
return collect_paths(app_names, template_name, include_root_paths=True, prune=prune, root_dirs=root_dirs)
File "/opt/homebrew/lib/python3.9/site-packages/voila/paths.py", line 90, in collect_paths
raise ValueError(
ValueError: No template sub-directory with name 'base' found in the following paths:
我一直在尝试通过指定其他文件夹中的模板来解决这个问题,但目前没有任何效果。
which voila
返回/opt/homebrew/bin/voila
which python3
返回/opt/homebrew/bin/python3
有什么想法吗?谢谢
解决方案
推荐阅读
- python-3.x - “证书验证失败:证书已过期(_ssl.c:****)”尝试将我的机器人连接到不和谐时
- c - 散列相同的字符串会在内核模块中产生不同的结果
- elasticsearch - 弹性联合收割机必须和不可以
- javascript - 在nextjs中计算两点之间的距离(以英里为单位)
- php - 如果用户已登录但他们还没有帖子,则在 Wordpress 中显示“无帖子”消息
- javascript - 对格式化数字JS的自定义数组求和
- javascript - 压缩从 c# 发送的 JSON 对象到 Javascript POST -(性能改进)
- .net - 如何通过通配符模式构建 dotnet
- python - 使用 Instaloader 和 Python 时卡在下载中
- extract - Halcon - 提取箱子区域