[英]Installing module in python with anaconda and jupyter notebook
I've been having a problem with installing modules, and I can't find an exact solution to it anywhere. 我一直遇到安装模块的问题,而且无法在任何地方找到确切的解决方案。 What I'm trying to do is use anaconda to install a module.
我想要做的是使用anaconda来安装模块。 When I type into the anaconda command prompt:
当我输入anaconda命令提示符时:
pip install imbox
it says it installs. 它说它安装。 So then i open jupyter notebook by simply using
那么我只需使用即可打开jupyter笔记本
jupyter notebook
Everything seems ok until I try to 在我尝试之前,一切似乎都没问题
from imbox import Imbox
and I get 我明白了
No module named imbox
How would I make jupyter notebook include that module? 我如何使jupyter笔记本包含该模块?
Try using the pip that comes with conda, instead of your default pip. 尝试使用conda附带的点子,而不是默认的点子。
PATH_TO_CONDA_DIR/bin/pip install imbox
In your case: 在你的情况下:
C:\\Users\\USERNAME\\Anaconda2\\bin\\pip install imbox
Alternative, install the package again, in the specified location: 或者,在指定位置再次安装包:
pip install --target=C:\\Users\\USERNAME\\Anaconda2\\lib\\site-packages imbox
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.