我正在尝试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
有什么想法吗?谢谢