diff --git a/notes/cuda-12-4-install.md b/notes/cuda-12-4-install.md index ef23dbf..b3afb57 100644 --- a/notes/cuda-12-4-install.md +++ b/notes/cuda-12-4-install.md @@ -1,6 +1,6 @@ # CUDA 12.4 Install -> https://unknowndba.blogspot.com/2024/04/cuda-getting-started-on-wsl.html (@\_freddenis\_, 2024) +> (@\_freddenis\_, 2024) ```bash # get md5sums @@ -49,10 +49,9 @@ make ./devicequery ``` - ### if the cuda-toolkit install fails with unmet dependencies ->https://askubuntu.com/a/1493087 (jspinella, 2023, CC BY-SA 4.0) +> (jspinella, 2023, CC BY-SA 4.0) 1. Open the *new* file for storing the sources list @@ -60,7 +59,7 @@ make sudo nano /etc/apt/sources.list.d/ubuntu.sources ``` -2. Paste in the following at the end of the file: +2. Paste in the following at the end of the file: ```raw Types: deb @@ -71,4 +70,3 @@ make ``` 3. Save the file and run `sudo apt update` - now the install command for CUDA should work. - diff --git a/notes/links.md b/notes/links.md index 5c08d66..30a2c58 100644 --- a/notes/links.md +++ b/notes/links.md @@ -1,4 +1,4 @@ # useful links -- (Optuna)[https://optuna.org] Hyperparameter optimization framework +- [Optuna](https://optuna.org) Hyperparameter optimization framework `pip install optuna` diff --git a/notes/pyenv-install.md b/notes/pyenv-install.md index 26d07ce..f1525c3 100644 --- a/notes/pyenv-install.md +++ b/notes/pyenv-install.md @@ -1,46 +1,42 @@ -# pyenv install +# pyenv installation -## install +## pyenv -nice to have: +1. Install pyenv -```bash -sudo apt install python-is-python3 -``` + ```bash + curl https://pyenv.run | bash + ``` -```bash -curl https://pyenv.run | bash -``` +2. setup zsh -## setup zsh + add the following to `.zshrc`: -add the following to `.zshrc`: + ```bash + export PYENV_ROOT="$HOME/.pyenv" + [[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" + eval "$(pyenv init -)" + ``` -```bash -export PYENV_ROOT="$HOME/.pyenv" -[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" -eval "$(pyenv init -)" -``` +## python installation -## pyenv install +1. prerequisites -prerequisites: + ```bash + sudo apt update + sudo apt install build-essential libssl-dev zlib1g-dev \ + libbz2-dev libreadline-dev libsqlite3-dev curl git \ + libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev \ + libffi-dev liblzma-dev python3-pip + ``` -```bash -sudo apt update -sudo apt install build-essential libssl-dev zlib1g-dev \ -libbz2-dev libreadline-dev libsqlite3-dev curl git \ -libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev \ -libffi-dev liblzma-dev python3-pip -``` +2. install -install: + ```bash + # using python 3.12.7 as an example + pyenv install 3.12.7 -```bash -# using python 3.12.7 as an example -pyenv install 3.12.7 - -# optional -pyenv global 3.12.7 -pyenv versions -``` + # optional + pyenv global 3.12.7 + pyenv versions + ``` diff --git a/notes/pytorch-install.md b/notes/pytorch-install.md index c4f23aa..0d2d460 100644 --- a/notes/pytorch-install.md +++ b/notes/pytorch-install.md @@ -8,7 +8,8 @@ source ./.venv/bin/activate ``` ## install pytorch -> https://pytorch.org/get-started/locally/ + +> ```bash pip install torch torchvision torchaudio