How to install Phyton package in Jupyter Notebook instance in SageMaker?

0

Hi,

I want to use awswrangler package in my Jupyter Notebook instance of SageMaker.

I understand that we have to use Lifecycle configuration. I tried to do it using the following script:

#!/bin/bash

pip install awswrangler==0.2.2

But when I import that package into my Notebook:

import boto3                                      # For executing native S3 APIs
import pandas as pd                               # For munging tabulara data
import numpy as np                                # For doing some calculation
import awswrangler as wr
import io
from io import StringIO

I still get the following error:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-f3d85c7dd0f6> in <module>()
      2 import pandas as pd                               # For munging tabulara data
      3 import numpy as np                                # For doing some calculation
----> 4 import awswrangler as wr
      5 import io
      6 from io import StringIO

ModuleNotFoundError: No module named 'awswrangler'

Any documentation or reference on how to install certain package for Jupyter Notebook in SageMaker?

AWS
Andre_J
질문됨 4년 전2201회 조회
1개 답변

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠