无法从Pycaret解决导入错误
我试图通过在Anaconda(Python 3.8)中创建环境来安装Pycaret。一切都很好,除非我尝试从pycaret.classification import *
我显示出一个错误,尽管我已经安装了所有依赖项:
Importerror:缺少可选依赖性'jinja2'。 DataFrame.Style需要Jinja2。使用PIP或CONDA安装Jinja2。
我尝试刷新内核并重新安装Jinja2,但错误仍然存在。我可以知道如何克服它吗?
I am trying to install pycaret by creating an environment in anaconda (python 3.8). Everything is fine except when i tried to from pycaret.classification import *
i shows an error despite the fact that i have installed all dependencies:
ImportError: Missing optional dependency 'Jinja2'. DataFrame.style requires jinja2. Use pip or conda to install Jinja2.
I tried refreshing the kernel and reinstalling Jinja2 but the error remains. May i know how could i overcome it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我在COLAB中也有同样的问题,我通过强制
markupsafe
版本进行修复:此后,下一个导入像以前一样工作
I had same issue in colab, I fixed it by forcing the
markupsafe
version:After this, the next imports worked as before
我也有同样的问题,并通过:
I have same issue and fixed it by:
谢谢。
因此,当我运行上述语句时,它给了我一些兼容性错误。
所以我执行了以下语句
Thank you.
So when I ran the above statement it gave me some compatibility error.
So I executed the following statement