You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

虚拟环境中Python可导入plot-likert,但Jupyter Lab提示ModuleNotFoundError的问题求助

虚拟环境中Python可导入plot-likert,但Jupyter Lab提示ModuleNotFoundError的问题求助

我在虚拟环境里安装了plot-likert库,奇怪的是在普通Python环境里能正常导入使用,但在Jupyter Lab里却一直报错,完全搞不懂问题出在哪!其他库用pip install安装后都能正常运行,就这个库出现了异常。

普通Python环境的测试情况:

(venv_jupyter) lucas@karaboudjan:~/.instalados/venv_jupyter$ which python
/home/lucas/.instalados/venv_jupyter/bin/python
(venv_jupyter) lucas@karaboudjan:~/.instalados/venv_jupyter$ python
Python 3.10.12 (main, Sep 11 2024, 15:47:36) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import plot_likert
>>> 

Jupyter Lab中的报错情况(已经试过kill -9 -1并重启所有服务,问题依然存在):

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[2], line 4
      2 import matplotlib.pyplot as plt
      3 import seaborn as sns
----> 4 import plot_likert
      5 health = pd.read_csv('health_concerns.csv')
      6 health.head()

ModuleNotFoundError: No module named 'plot_likert'

真的毫无头绪,有没有大佬能帮忙分析下可能的原因啊?

备注:内容来源于stack exchange,提问作者josinalvo

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.14 15:49:35