CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/Tools/environment_install/ubuntu-18.04-python3.sh
Views: 1862
1
#!/usr/bin/env bash
2
3
set -e
4
set -x
5
6
# this should be install by default, but may as well:
7
sudo apt install python3
8
9
# add $HOME/bin into the binary search path so we can force python-is-python3:
10
mkdir $HOME/bin
11
rm -f $HOME/bin/python
12
ln -s /usr/bin/python3 $HOME/bin/python
13
14
echo 'export PATH=$HOME/bin:$PATH' >>$HOME/.profile
15
16
# apt Python packages (swiped from install-prereqs-ubuntu.sh):
17
sudo apt install -y python3-wxgtk4.0 python3-opencv python3-matplotlib python3-pip
18
19
# pip-install python packages (also swiped from install-prereqs-ubuntu.sh):
20
pip3 install future lxml pymavlink MAVProxy pexpect flake8==3.7.9 requests==2.27.1 monotonic==1.6 geocoder empy==3.3.4 configparser==4.0.2 click==7.1.2 decorator==4.4.2 dronecan pygame intelhex empy
21
22