Ubuntu: ensure /usr/bin/python is python3
/usr/bin/python may be python 2 on Focal, which causes problems with Ansible on the control host. By installing the python-is-python3 package we ensure that the correct interpreter is used. This change updates the installation documentation and development environment scripts. Story: 2004960 Task: 42579 Change-Id: Ie94099075bae3c491f9cf830c38e6cfc8af605a6
This commit is contained in:
parent
211c68aa6c
commit
82def9a516
@ -145,7 +145,7 @@ function install_dependencies {
|
||||
exit 1
|
||||
else
|
||||
sudo apt update
|
||||
sudo apt install -y python3-dev python3-virtualenv gcc git libffi-dev
|
||||
sudo apt install -y python-is-python3 python3-dev python3-virtualenv gcc git libffi-dev
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -47,6 +47,10 @@ On Ubuntu::
|
||||
|
||||
$ apt install -y git
|
||||
|
||||
On Ubuntu, ensure that /usr/bin/python points to a Python 3 interpreter::
|
||||
|
||||
$ apt install -y python-is-python3
|
||||
|
||||
Local directory structure
|
||||
=========================
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user