C2_W1_Assignment: Issue with C2_W1_Assignment.ipynb Execution

Hi,

I am reaching out to seek your assistance regarding a challenge I am facing with the execution of the C2_W1_Assignment.ipynb notebook.

Upon attempting to launch the code cell below:

# please ignore warning messages during the installation
!pip install --disable-pip-version-check -q sagemaker==2.35.0
!conda install -q -y pytorch==1.6.0 -c pytorch
!pip install --disable-pip-version-check -q transformers==3.5.1
!pip install -q protobuf==3.20.*

I encountered the following error output:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
distributed 2022.7.0 requires tornado<6.2,>=6.0.3, but you have tornado 6.4 which is incompatible.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Solving environment: ...working...

As a result, the program freezes, preventing me from progressing with my work. Please help resolve this issue and provide guidance on how to proceed.

Thank you for your assistance.
Best regards

2 Likes

Alright, I’ve identified the solution. To address this issue, I need to utilize the Image “Data Science 2.0” within the Set up notebook environment . The root cause is that pytorch==1.6.0 isn’t compatible with Python 3.10, which is the version used in the Image “Data Science 3.0” .

3 Likes