美文网首页
import scipy小问题

import scipy小问题

作者: 一筐荚果 | 来源:发表于2017-09-11 15:54 被阅读8次

那么多问题的答案,只有一个适合自己

Jupyter notebook (2017.9)

终端安装了scipy包,notebook无法导入

[Anaconda3] C:\Users\me>python
Python 3.5.1 |Anaconda 4.0.0 (64-bit)| (default, Feb 16 2016, 09:49:46) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
>>>

报错

ImportError                               Traceback (most recent call last)
<ipython-input-3-4dc45f4c0083> in <module>()
----> 1 import scipy

ImportError: No module named 'scipy'

解决方法:终端(手动)输入

$ /Users/abc/anaconda/bin/python -m pip install ipykernel
$ /Users/abc/anaconda/bin/python -m  ipykernel install

相关文章

网友评论

      本文标题:import scipy小问题

      本文链接:https://www.haomeiwen.com/subject/zmnvnttx.html