importterror在JupyterLab,但工作在Spyder和命令行
你好,
我在尝试命令来自gurobipy import *在JupyterLab,但它显示了以下消息
---------------------------------------------------------------------------ImportError回溯(最近的调用)< ipython -输入- 1 - 63 - cdd5112d6e >在<模块>——> 1从gurobipy进口*D: \ Anaconda2 \ env \ py3 \ lib \网站\ gurobipy \ __init__ . py在<模块>——> 1从.gurobipy进口*ImportError: DLL加载失败:找不到指定的模块。
然后我尝试在命令行和spyder。这种导入工作。我尝试输出sys。可执行文件和系统。JupyterLab的路径和命令行。他们是相同的。
我想知道为什么它工作在spyder和命令行,但不工作在jupyterlab和jupyter笔记本。
谢谢,
正为温榆
请登录留下评论。
评论
1评论