AWS Sagemaker不更新软件包

编程入门 行业动态 更新时间:2024-10-26 04:31:09
本文介绍了AWS Sagemaker不更新软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

AWS Sagemaker的笔记本电脑附带了Scikit-Learn版本0.19.1

AWS Sagemaker's notebook comes with Scikit-Learn version 0.19.1

我想使用0.20.2版本.为了避免每次在笔记本代码中进行更新,我尝试使用生命周期配置.我用以下代码创建了一个:

I would like to use version 0.20.2. To avoid updating it every time in the notebook code, I tried using the lifecycle configurations. I created one with the following code :

#!/bin/bash set -e /home/ec2-user/anaconda3/bin/conda install scikit-learn -y

当我运行附带的笔记本实例并转到终端时,在 conda list 中找到的scikit-learn的版本是正确的(0.20.2).但是当我运行笔记本并导入sklearn时,该版本仍为0.19.2.

When I run the attached notebook instance and go to the terminal, the version of scikit-learn found with conda list is correct (0.20.2). But when I run a notebook and import sklearn, the version is still 0.19.2.

import sklearn print(sklearn.__version__)

我应该在SageMaker实例上安装软件包的任何虚拟环境吗?如何修复笔记本电脑的生命周期配置?

Is there any virtual environment on the SageMaker instances where I should install the package ? How can I fix my notebook lifecycle configuration ?

推荐答案

您的conda更新未引用特定的virtualenv,而笔记本可能会引用.因此,您在笔记本virtualenv上看不到更新.

Your conda update does not refer to a specific virtualenv, while your notebook probably does. Therefore you dont see an update on the notebook virtualenv.

更多推荐

AWS Sagemaker不更新软件包

本文发布于:2023-07-05 15:53:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1039131.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:软件包   AWS   Sagemaker

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!