From a6c7e8cc4d97554de9d55ef2f5eb5a705b1d5ba0 Mon Sep 17 00:00:00 2001 From: Maximiliano Gandini <102678264+MaxGandini@users.noreply.github.com> Date: Wed, 29 Jan 2025 13:55:22 -0300 Subject: [PATCH] Update SETUP-linux.md This is a little extra for the pip method using distributions such as arch. This should come in handy for someone that is using rolling release distributions as generally dependencies are broken and troubleshooting takes a long time when done alone. --- SETUP-linux.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/SETUP-linux.md b/SETUP-linux.md index 6806510..465c93d 100644 --- a/SETUP-linux.md +++ b/SETUP-linux.md @@ -103,6 +103,24 @@ Run: `python -m pip install --upgrade pip` followed by `pip install -r requireme If issues occur, try the fallback: `pip install --retries 5 --timeout 15 --no-cache-dir --force-reinstall -r requirements.txt` +###### Arch users: + +Some updates break dependencies. Most notably, numpy, scipy and gensim. To troubleshoot this, you can try many commands: + +`sudo pacman -S python-numpy python-pandas python-scipy` This is not recommended, as pacman has no integration with pip (as far as I know) + +Another possible solution if having build conflicts, is to update: + +`sudo pacman -S gcc gcc-fortran python-setuptools python-wheel` + +*Note:* gensim is broken if you have an updated version of scipy. You can either pin scipy to an older version, or +erase gensim from the requirements.txt for the moment. (See: https://aur.archlinux.org/packages/python-gensim) + +Lastly, so that the kernel is visible after step (6) in jupyter lab : +`python -m ipykernel install --user --name=llmenv` +`ipython kernel install --user --name=llmenv` + + 6. **Start Jupyter Lab:** From the `llm_engineering` folder, run: `jupyter lab`.