0
votes

Launched Data Science Python 3 instance in the SageMaker Studio.

enter image description here Launched a terminal from the Notebook menu "Launch terminal in current SageMaker image".

enter image description here

Tried to run pip but it says not found. Do I need to install pip by myself?

root@datascience-1-0-ml-t3-medium-1abf3407f667f989be9d86559395:~/# pip
bash: pip: command not found

Alto there is no Python3 available apparently from within the terminal.

root@datascience-1-0-ml-t3-medium-1abf3407f667f989be9d86559395:~# python3 
bash: python3: command not found

root@datascience-1-0-ml-t3-medium-1abf3407f667f989be9d86559395:~# python --version
Python 2.7.16

root@datascience-1-0-ml-t3-medium-1abf3407f667f989be9d86559395:/usr/bin# ls -lrt | grep python
lrwxrwxrwx 1 root root        29 Mar  4  2019 pyversions -> ../share/python/pyversions.py
lrwxrwxrwx 1 root root         9 Mar  4  2019 python2 -> python2.7
lrwxrwxrwx 1 root root         7 Mar  4  2019 python -> python2
-rwxr-xr-x 1 root root      1056 Mar  4  2019 dh_python2
-rwxr-xr-x 1 root root   3689352 Oct 10  2019 python2.7
lrwxrwxrwx 1 root root        23 Oct 10  2019 pdb2.7 -> ../lib/python2.7/pdb.py

However, the notebook says it is Python3.

from platform import python_version
print(python_version())
---
3.7.10

enter image description here

And can run pip in the cell.

enter image description here

Appreciate any explanation what is going on.