Skip to content

Instantly share code, notes, and snippets.

@hrkt
Last active August 10, 2022 21:19
Show Gist options
  • Save hrkt/21b82627ad411683aca08cc19b4e9a53 to your computer and use it in GitHub Desktop.
Save hrkt/21b82627ad411683aca08cc19b4e9a53 to your computer and use it in GitHub Desktop.
# ubuntu22.04 on WSL of Win11
cd
sudo apt-get update
PKGS="python3-pip\
libgl1-mesa-glx\
libxkbcommon-x11-0\
libxcb-icccm4\
libxcb-image0\
libxcb-keysyms1\
libxcb-qxcb1\
libxcb-render-util0\
libxcb-shape0\
python3.10-venv\
htop
"
for p in $PKGS; do
sudo apt install -y $p
done
mkdir ml
cd ml
python3 -m venv venv
source ~/ml/venv/bin/activate
TARGETS="opencv-python\
python-dateutil\
jupyter\
notebook\
numpy\
pandas\
scipy\
scikit-learn\
cmake\
matplotlib\
pyyaml\
h5py\
pydot-ng\
keras\
pillow\
tensorflow\
pyqt5\
autopep8
"
for t in $TARGETS; do
pip install $t
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment