[英]Boto3 fails to load in jupyter notebook but not in python shell
I know there are so many question online about this, but I havent found a solution, and what I can add into my problem is that when I check what is install in my enviroment I can see boto3 been installed我知道网上有很多关于这个的问题,但我还没有找到解决方案,我可以添加到我的问题中的是,当我检查我的环境中安装了什么时,我可以看到 boto3 已安装
I have run the install of boto3 by doing我已经运行了 boto3 的安装
pip3 install boto3
and also并且
pip install boto3
However, when I am in Jupyter notebook, I get the error of module not found但是,当我在 Jupyter 笔记本中时,我收到模块未找到的错误
I dont understand why when I am using the same enviroment I get this error in Jupyter notebook, how can I fix this?我不明白为什么当我使用相同的环境时,我会在 Jupyter 笔记本中收到此错误,我该如何解决?
Jupyter is using a different python binary. Jupyter 正在使用不同的 python 二进制文件。
Can you try installing boto3 using %pip install boto3
command from jupyter?您可以尝试使用 jupyter 的
%pip install boto3
命令安装 boto3 吗?
Or install it to your user area, run this from a terminal pip install --user boto3
.或者将其安装到您的用户区,从终端
pip install --user boto3
运行它。 Restart your jupyter and try importing boto3 again.重新启动您的 jupyter 并尝试再次导入 boto3。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.