mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
ubuntu.py: update to dual install to Python2
This commit is contained in:
parent
82bcfcb710
commit
33ae0bb705
@ -73,6 +73,8 @@ sudo apt-get -yy --quiet --no-install-recommends install \
|
||||
python3-pip \
|
||||
python3-pygments \
|
||||
python3-setuptools \
|
||||
python-pip \
|
||||
python-dev \
|
||||
rsync \
|
||||
shellcheck \
|
||||
unzip \
|
||||
@ -88,6 +90,14 @@ echo "Installing PX4 Python3 dependencies"
|
||||
sudo python3 -m pip install --upgrade pip setuptools wheel
|
||||
sudo python3 -m pip install -r ${DIR}/requirements.txt
|
||||
|
||||
|
||||
# Python2 dependencies
|
||||
echo
|
||||
echo "Installing PX4 Python2 dependencies"
|
||||
sudo python2 -m pip install --upgrade pip setuptools wheel
|
||||
sudo python2 -m pip install -r ${DIR}/requirements.txt
|
||||
|
||||
|
||||
# NuttX toolchain (arm-none-eabi-gcc)
|
||||
if [[ $INSTALL_NUTTX == "true" ]]; then
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user