无法在Jupyter笔记本中导入密谋

时间:2018-07-15 01:41:26

标签: python jupyter-notebook plotly

在笔记本上获取此信息(在antergos上):

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-8-6361d2547ebc> in <module>()
----> 1 import plotly

ModuleNotFoundError: No module named 'plotly'

从具有相同sys.path和sys.executable的virtualenv的python解释器尝试时

values, it imports fine like this:

python
import plotly

我没有使用anaconda,但我正在使用virtualenv,请按照以下指南进行设置:https://anbasile.github.io/programming/2017/06/25/jupyter-venv/通过运行“哪个jupyter”指向virtualenv的本地本地文件来检查可执行文件。在两种情况下,冻结点似乎都能输出相同的结果:

backcall==0.1.0
certifi==2018.4.16
chardet==3.0.4
decorator==4.3.0
GDAL==2.3.1
idna==2.7
ipykernel==4.8.2
ipython==6.4.0
ipython-genutils==0.2.0
jedi==0.12.1
jsonschema==2.6.0
jupyter-client==5.2.3
jupyter-core==4.4.0
nbformat==4.4.0
parso==0.3.1
pexpect==4.6.0
pickleshare==0.7.4
plotly==3.0.0
prompt-toolkit==1.0.15
ptyprocess==0.6.0
Pygments==2.2.0
python-dateutil==2.7.3
pytz==2018.5
pyzmq==17.1.0
requests==2.19.1
retrying==1.3.3
simplegeneric==0.8.1
six==1.11.0
tornado==5.1
traitlets==4.3.2
urllib3==1.23
wcwidth==0.1.7

重启内核似​​乎也无济于事。

0 个答案:

没有答案
相关问题