mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
setup: use pip as user, don't forget python3-dev
In my opinion we should not mess with someones system Python dependencies.
This commit is contained in:
parent
1e06f6bbd2
commit
bf62b0f5e6
@ -10,6 +10,7 @@ psutil
|
||||
pyserial>=3.0
|
||||
pyulog>=0.5.0
|
||||
pyyaml
|
||||
pygments
|
||||
setuptools>=39.2.0
|
||||
six>=1.12.0
|
||||
toml>=0.9
|
||||
|
||||
@ -92,11 +92,12 @@ sudo apt-get -yy --quiet --no-install-recommends install \
|
||||
lcov \
|
||||
make \
|
||||
ninja-build \
|
||||
python3 \
|
||||
python3-dev \
|
||||
python3-pip \
|
||||
python3-pygments \
|
||||
python3-setuptools \
|
||||
python-pip \
|
||||
python \
|
||||
python-dev \
|
||||
python-pip \
|
||||
rsync \
|
||||
shellcheck \
|
||||
unzip \
|
||||
@ -115,15 +116,15 @@ fi
|
||||
# Python3 dependencies
|
||||
echo
|
||||
echo "Installing PX4 Python3 dependencies"
|
||||
sudo python3 -m pip install --upgrade pip setuptools wheel
|
||||
sudo python3 -m pip install -r ${DIR}/requirements.txt
|
||||
pip3 install --user --upgrade setuptools wheel
|
||||
pip3 install --user -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
|
||||
pip install --user --upgrade setuptools wheel
|
||||
pip install --user -r ${DIR}/requirements.txt
|
||||
|
||||
|
||||
# NuttX toolchain (arm-none-eabi-gcc)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user