简体   繁体   English

如何安装python包以在jupyter笔记本内核中使用?

[英]How to install python packages for use in a jupyter notebook kernel?

I installed Python 3 kernel using the following commands 我使用以下命令安装了Python 3内核

conda create -n py35 python=3.5 ipykernel
source activate py35
python -m ipykernel install –user –name py35 –display-name “Python 3”

When I import numpy in a python 3 notebook, I get ImportError: No module named numpy . 当我在python 3笔记本中导入numpy时,我得到ImportError: No module named numpy How can I fix this problem? 我该如何解决这个问题?

conda create -n py35 python=3.5 ipykernel
source activate py35
pip install numpy

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM