python – 在Jupyter问题中的Plotly
发布时间:2020-09-21 20:17:12 所属栏目:Python 来源:互联网
导读:我安装了plotly.py来使用Jupyter来处理一些图,但我无法导入它. ! pip install plotly --upgradeRequirement already up-to-date: plotly in c:python34libsite-packagesRequirement already up-to-date: requests in c:python34li
我安装了plotly.py来使用Jupyter来处理一些图,但我无法导入它. ! pip install plotly --upgrade Requirement already up-to-date: plotly in c:python34libsite-packages Requirement already up-to-date: requests in c:python34libsite-packages (from plotly) Requirement already up-to-date: six in c:python34libsite-packages (from plotly) Requirement already up-to-date: pytz in c:python34libsite-packages (from plotly) Cleaning up... 然后 import plotly --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-6-c27a4132ad2e> in <module>() ----> 1 import plotly ImportError: No module named 'plotly' 我正在运行Python 3.4.1,所以作为Jupyter,我无法得到的是当我从命令行运行Python时,情节正常.有什么建议? (我真的不想清理安装Python) 解决方法我有同样的问题.在命令提示符下运行以下解决了我的问题 conda install -c https://conda.anaconda.org/plotly plotly 通过pip安装绘制的图形很可能是由Jupter以某种方式检测不到的. (编辑:莱芜站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- python – Django中的ValidationError
- Python Flask-WTF – 使用相同的表单模板进行添加和编辑操作
- python – 我应该使用GeoDjango来映射平面图吗?
- python – 如何在selenium webdriver中使用变量通过xpath查
- django 1.9:ProgrammingError:关系“users_user”不存在
- python – 当涉及离散变量时,pymc3与pymc2的困难
- python本地模块
- 如何将Python的GTK与gevent集成?
- 什么“这里不允许使用目录索引.”是指Django错误?
- python – 在Flask-Login中使用的“is_authenticated”方法