2 Answers
- Newest
- Most votes
- Most comments
1
Hello,
Error: You were getting an error because you needed to install the s3fs library to access S3 files in your SageMaker notebook.
Let's do:
- Install s3fs: Use !pip install s3fs in your notebook.
Use !pip install s3fs==2023.6.0 to install a compatible version.
- Access data: Use pd.read_csv('s3://your_bucket/your_file.csv') to read your CSV file from S3.
2.Use a virtual environment:
- Create a new environment with conda create -n my_env python=3.7.
- Activate it with conda activate my_env.
- Install required packages like pandas, numpy, boto3, sagemaker, fsspec[http].
0
Can you provide more details about how do you run the notebook? If you work with SageMaker studio, you can select the relevant kernel with basic dependancies. Check this video for very basic "getting started". https://www.youtube.com/watch?v=oBx_o57gDGY
answered 2 years ago

Now I am getting this error
Also, since I am installing within Sagemaker notebook, I am doing
However, during installation, it is asking me Proceed [y]/no? On my local computer I can simply press enter on Anaconda prompt to install the packages. How is this done within a notebook?